DescribeAffectedEntitiesForOrganizationResponse.fromJson constructor

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

Implementation

factory DescribeAffectedEntitiesForOrganizationResponse.fromJson(
    Map<String, dynamic> json) {
  return DescribeAffectedEntitiesForOrganizationResponse(
    entities: (json['entities'] as List?)
        ?.whereNotNull()
        .map((e) => AffectedEntity.fromJson(e as Map<String, dynamic>))
        .toList(),
    failedSet: (json['failedSet'] as List?)
        ?.whereNotNull()
        .map((e) => OrganizationAffectedEntitiesErrorItem.fromJson(
            e as Map<String, dynamic>))
        .toList(),
    nextToken: json['nextToken'] as String?,
  );
}