DsRecord.fromJson constructor

DsRecord.fromJson(
  1. Map _json
)

Implementation

DsRecord.fromJson(core.Map _json)
    : this(
        algorithm: _json.containsKey('algorithm')
            ? _json['algorithm'] as core.String
            : null,
        digest: _json.containsKey('digest')
            ? _json['digest'] as core.String
            : null,
        digestType: _json.containsKey('digestType')
            ? _json['digestType'] as core.String
            : null,
        keyTag:
            _json.containsKey('keyTag') ? _json['keyTag'] as core.int : null,
      );