RRSetRoutingPolicy.fromJson constructor

RRSetRoutingPolicy.fromJson(
  1. Map json_
)

Implementation

RRSetRoutingPolicy.fromJson(core.Map json_)
    : this(
        geo: json_.containsKey('geo')
            ? RRSetRoutingPolicyGeoPolicy.fromJson(
                json_['geo'] as core.Map<core.String, core.dynamic>)
            : null,
        healthCheck: json_.containsKey('healthCheck')
            ? json_['healthCheck'] as core.String
            : null,
        kind: json_.containsKey('kind') ? json_['kind'] as core.String : null,
        primaryBackup: json_.containsKey('primaryBackup')
            ? RRSetRoutingPolicyPrimaryBackupPolicy.fromJson(
                json_['primaryBackup'] as core.Map<core.String, core.dynamic>)
            : null,
        wrr: json_.containsKey('wrr')
            ? RRSetRoutingPolicyWrrPolicy.fromJson(
                json_['wrr'] as core.Map<core.String, core.dynamic>)
            : null,
      );