ListOrganizationAdminAccountsResponse.fromJson constructor

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

Implementation

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