ListMailboxPermissionsResponse.fromJson constructor

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

Implementation

factory ListMailboxPermissionsResponse.fromJson(Map<String, dynamic> json) {
  return ListMailboxPermissionsResponse(
    nextToken: json['NextToken'] as String?,
    permissions: (json['Permissions'] as List?)
        ?.whereNotNull()
        .map((e) => Permission.fromJson(e as Map<String, dynamic>))
        .toList(),
  );
}