ServiceDiscovery.fromJson constructor

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

Implementation

factory ServiceDiscovery.fromJson(Map<String, dynamic> json) {
  return ServiceDiscovery(
    awsCloudMap: json['awsCloudMap'] != null
        ? AwsCloudMapServiceDiscovery.fromJson(
            json['awsCloudMap'] as Map<String, dynamic>)
        : null,
    dns: json['dns'] != null
        ? DnsServiceDiscovery.fromJson(json['dns'] as Map<String, dynamic>)
        : null,
  );
}