Invitation.fromJson constructor

Invitation.fromJson(
  1. Map<String, dynamic> json
)

Implementation

factory Invitation.fromJson(Map<String, dynamic> json) => Invitation(
  share_id: json['share_id'] as String,
  channel: json['channel'] == null ? null : json['channel'] as String,
  url: json['url'] as String,
  created: json['created'] == null ? null : json['created'] as String,
  redeemed: json['redeemed'] as int,
  description: json['description'] == null ? null : json['description'] as String,
);