SentInvitation.fromJson constructor

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

Implementation

factory SentInvitation.fromJson(Map<String, dynamic> json) => SentInvitation(
      code: json['code'],
      expiresAt: DateTime.parse(json['expiresAt']),
      publicDetails: _map(json['publicDetails'])!,
      contentKey: json['contentKey'],
      status: SentInvitationStatus.values.byName(json['status']),
      acceptedBy: (json['acceptedBy'] as String?)?.toAtsign(),
      acceptanceDetails: _map(json['acceptanceDetails']),
    );