EndpointConfiguration.fromJson constructor

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

Implementation

factory EndpointConfiguration.fromJson(Map<String, dynamic> json) {
  return EndpointConfiguration(
    types: (json['types'] as List?)
        ?.whereNotNull()
        .map((e) => (e as String).toEndpointType())
        .toList(),
    vpcEndpointIds: (json['vpcEndpointIds'] as List?)
        ?.whereNotNull()
        .map((e) => e as String)
        .toList(),
  );
}