ListInvitationsResponse.fromJson constructor

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

Implementation

factory ListInvitationsResponse.fromJson(Map<String, dynamic> json) {
  return ListInvitationsResponse(
    invitations: (json['invitations'] as List?)
        ?.whereNotNull()
        .map((e) => Invitation.fromJson(e as Map<String, dynamic>))
        .toList(),
    nextToken: json['nextToken'] as String?,
  );
}