EndpointDetails.fromJson constructor

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

Implementation

factory EndpointDetails.fromJson(Map<String, dynamic> json) {
  return EndpointDetails(
    addressAllocationIds: (json['AddressAllocationIds'] as List?)
        ?.whereNotNull()
        .map((e) => e as String)
        .toList(),
    securityGroupIds: (json['SecurityGroupIds'] as List?)
        ?.whereNotNull()
        .map((e) => e as String)
        .toList(),
    subnetIds: (json['SubnetIds'] as List?)
        ?.whereNotNull()
        .map((e) => e as String)
        .toList(),
    vpcEndpointId: json['VpcEndpointId'] as String?,
    vpcId: json['VpcId'] as String?,
  );
}