AwsCloudMapServiceDiscovery.fromJson constructor

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

Implementation

factory AwsCloudMapServiceDiscovery.fromJson(Map<String, dynamic> json) {
  return AwsCloudMapServiceDiscovery(
    namespaceName: json['namespaceName'] as String,
    serviceName: json['serviceName'] as String,
    attributes: (json['attributes'] as List?)
        ?.whereNotNull()
        .map((e) =>
            AwsCloudMapInstanceAttribute.fromJson(e as Map<String, dynamic>))
        .toList(),
  );
}