Service.fromJson constructor
Service.fromJson(
- Map<String, dynamic> json
)
Implementation
factory Service.fromJson(Map<String, dynamic> json) {
return Service(
arn: json['Arn'] as String?,
createDate: timeStampFromJson(json['CreateDate']),
creatorRequestId: json['CreatorRequestId'] as String?,
description: json['Description'] as String?,
dnsConfig: json['DnsConfig'] != null
? DnsConfig.fromJson(json['DnsConfig'] as Map<String, dynamic>)
: null,
healthCheckConfig: json['HealthCheckConfig'] != null
? HealthCheckConfig.fromJson(
json['HealthCheckConfig'] as Map<String, dynamic>)
: null,
healthCheckCustomConfig: json['HealthCheckCustomConfig'] != null
? HealthCheckCustomConfig.fromJson(
json['HealthCheckCustomConfig'] as Map<String, dynamic>)
: null,
id: json['Id'] as String?,
instanceCount: json['InstanceCount'] as int?,
name: json['Name'] as String?,
namespaceId: json['NamespaceId'] as String?,
);
}