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,
      );