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