DnsKey.fromJson constructor

DnsKey.fromJson(
  1. Map json_
)

Implementation

DnsKey.fromJson(core.Map json_)
    : this(
        algorithm: json_.containsKey('algorithm')
            ? json_['algorithm'] as core.String
            : null,
        creationTime: json_.containsKey('creationTime')
            ? json_['creationTime'] as core.String
            : null,
        description: json_.containsKey('description')
            ? json_['description'] as core.String
            : null,
        digests: json_.containsKey('digests')
            ? (json_['digests'] as core.List)
                .map((value) => DnsKeyDigest.fromJson(
                    value as core.Map<core.String, core.dynamic>))
                .toList()
            : null,
        id: json_.containsKey('id') ? json_['id'] as core.String : null,
        isActive: json_.containsKey('isActive')
            ? json_['isActive'] as core.bool
            : null,
        keyLength: json_.containsKey('keyLength')
            ? json_['keyLength'] as core.int
            : null,
        keyTag:
            json_.containsKey('keyTag') ? json_['keyTag'] as core.int : null,
        kind: json_.containsKey('kind') ? json_['kind'] as core.String : null,
        publicKey: json_.containsKey('publicKey')
            ? json_['publicKey'] as core.String
            : null,
        type: json_.containsKey('type') ? json_['type'] as core.String : null,
      );