GoogleDevtoolsArtifactregistryV1File.fromJson constructor

GoogleDevtoolsArtifactregistryV1File.fromJson(
  1. Map json_
)

Implementation

GoogleDevtoolsArtifactregistryV1File.fromJson(core.Map json_)
    : this(
        createTime: json_.containsKey('createTime')
            ? json_['createTime'] as core.String
            : null,
        fetchTime: json_.containsKey('fetchTime')
            ? json_['fetchTime'] as core.String
            : null,
        hashes: json_.containsKey('hashes')
            ? (json_['hashes'] as core.List)
                .map((value) => Hash.fromJson(
                    value as core.Map<core.String, core.dynamic>))
                .toList()
            : null,
        name: json_.containsKey('name') ? json_['name'] as core.String : null,
        owner:
            json_.containsKey('owner') ? json_['owner'] as core.String : null,
        sizeBytes: json_.containsKey('sizeBytes')
            ? json_['sizeBytes'] as core.String
            : null,
        updateTime: json_.containsKey('updateTime')
            ? json_['updateTime'] as core.String
            : null,
      );