HmacKey.fromJson constructor

HmacKey.fromJson(
  1. Map _json
)

Implementation

HmacKey.fromJson(core.Map _json)
    : this(
        kind: _json.containsKey('kind') ? _json['kind'] as core.String : null,
        metadata: _json.containsKey('metadata')
            ? HmacKeyMetadata.fromJson(
                _json['metadata'] as core.Map<core.String, core.dynamic>)
            : null,
        secret: _json.containsKey('secret')
            ? _json['secret'] as core.String
            : null,
      );