Artifact.fromJson constructor Null safety

Artifact.fromJson(
  1. Map json_
)

Implementation

Artifact.fromJson(core.Map json_)
    : this(
        contents: json_.containsKey('contents')
            ? json_['contents'] as core.String
            : null,
        createTime: json_.containsKey('createTime')
            ? json_['createTime'] as core.String
            : null,
        hash: json_.containsKey('hash') ? json_['hash'] as core.String : null,
        mimeType: json_.containsKey('mimeType')
            ? json_['mimeType'] as core.String
            : null,
        name: json_.containsKey('name') ? json_['name'] as core.String : null,
        sizeBytes: json_.containsKey('sizeBytes')
            ? json_['sizeBytes'] as core.int
            : null,
        updateTime: json_.containsKey('updateTime')
            ? json_['updateTime'] as core.String
            : null,
      );