ListOrganizationalUnitsForParentResponse.fromJson constructor

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

Implementation

factory ListOrganizationalUnitsForParentResponse.fromJson(
    Map<String, dynamic> json) {
  return ListOrganizationalUnitsForParentResponse(
    nextToken: json['NextToken'] as String?,
    organizationalUnits: (json['OrganizationalUnits'] as List?)
        ?.whereNotNull()
        .map((e) => OrganizationalUnit.fromJson(e as Map<String, dynamic>))
        .toList(),
  );
}