ServiceSummary.fromJson constructor

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

Implementation

factory ServiceSummary.fromJson(Map<String, dynamic> json) {
  return ServiceSummary(
    arn: json['Arn'] as String?,
    createDate: timeStampFromJson(json['CreateDate']),
    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?,
  );
}