Service.fromJson constructor

Service.fromJson(
  1. Map json_
)

Implementation

Service.fromJson(core.Map json_)
    : this(
        generatedCustomerMetadata:
            json_.containsKey('generatedCustomerMetadata')
                ? json_['generatedCustomerMetadata']
                    as core.Map<core.String, core.dynamic>
                : null,
        id: json_.containsKey('id') ? json_['id'] as core.String : null,
        labels: json_.containsKey('labels')
            ? (json_['labels'] as core.Map<core.String, core.dynamic>).map(
                (key, value) => core.MapEntry(
                  key,
                  value as core.String,
                ),
              )
            : null,
        name: json_.containsKey('name') ? json_['name'] as core.String : null,
        networkSettings: json_.containsKey('networkSettings')
            ? NetworkSettings.fromJson(json_['networkSettings']
                as core.Map<core.String, core.dynamic>)
            : null,
        split: json_.containsKey('split')
            ? TrafficSplit.fromJson(
                json_['split'] as core.Map<core.String, core.dynamic>)
            : null,
      );