ListOrganizationsResponse.fromJson constructor

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

Implementation

factory ListOrganizationsResponse.fromJson(Map<String, dynamic> json) {
  return ListOrganizationsResponse(
    nextToken: json['NextToken'] as String?,
    organizationSummaries: (json['OrganizationSummaries'] as List?)
        ?.whereNotNull()
        .map((e) => OrganizationSummary.fromJson(e as Map<String, dynamic>))
        .toList(),
  );
}