ResourceRecordSet.fromJson constructor

ResourceRecordSet.fromJson(
  1. Map json_
)

Implementation

ResourceRecordSet.fromJson(core.Map json_)
    : this(
        kind: json_.containsKey('kind') ? json_['kind'] as core.String : null,
        name: json_.containsKey('name') ? json_['name'] as core.String : null,
        routingPolicy: json_.containsKey('routingPolicy')
            ? RRSetRoutingPolicy.fromJson(
                json_['routingPolicy'] as core.Map<core.String, core.dynamic>)
            : null,
        rrdatas: json_.containsKey('rrdatas')
            ? (json_['rrdatas'] as core.List)
                .map((value) => value as core.String)
                .toList()
            : null,
        signatureRrdatas: json_.containsKey('signatureRrdatas')
            ? (json_['signatureRrdatas'] as core.List)
                .map((value) => value as core.String)
                .toList()
            : null,
        ttl: json_.containsKey('ttl') ? json_['ttl'] as core.int : null,
        type: json_.containsKey('type') ? json_['type'] as core.String : null,
      );