ReplicationSubnetGroup.fromJson constructor

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

Implementation

factory ReplicationSubnetGroup.fromJson(Map<String, dynamic> json) {
  return ReplicationSubnetGroup(
    replicationSubnetGroupDescription:
        json['ReplicationSubnetGroupDescription'] as String?,
    replicationSubnetGroupIdentifier:
        json['ReplicationSubnetGroupIdentifier'] as String?,
    subnetGroupStatus: json['SubnetGroupStatus'] as String?,
    subnets: (json['Subnets'] as List?)
        ?.whereNotNull()
        .map((e) => Subnet.fromJson(e as Map<String, dynamic>))
        .toList(),
    vpcId: json['VpcId'] as String?,
  );
}