HmacKeyMetadata.fromJson constructor

HmacKeyMetadata.fromJson(
  1. Map _json
)

Implementation

HmacKeyMetadata.fromJson(core.Map _json)
    : this(
        accessId: _json.containsKey('accessId')
            ? _json['accessId'] as core.String
            : null,
        etag: _json.containsKey('etag') ? _json['etag'] as core.String : null,
        id: _json.containsKey('id') ? _json['id'] as core.String : null,
        kind: _json.containsKey('kind') ? _json['kind'] as core.String : null,
        projectId: _json.containsKey('projectId')
            ? _json['projectId'] as core.String
            : null,
        selfLink: _json.containsKey('selfLink')
            ? _json['selfLink'] as core.String
            : null,
        serviceAccountEmail: _json.containsKey('serviceAccountEmail')
            ? _json['serviceAccountEmail'] as core.String
            : null,
        state:
            _json.containsKey('state') ? _json['state'] as core.String : null,
        timeCreated: _json.containsKey('timeCreated')
            ? core.DateTime.parse(_json['timeCreated'] as core.String)
            : null,
        updated: _json.containsKey('updated')
            ? core.DateTime.parse(_json['updated'] as core.String)
            : null,
      );