Version.fromJson constructor
Version.fromJson(
- Map json_
Implementation
Version.fromJson(core.Map json_)
: this(
config: json_.containsKey('config')
? ServingConfig.fromJson(
json_['config'] as core.Map<core.String, core.dynamic>)
: null,
createTime: json_.containsKey('createTime')
? json_['createTime'] as core.String
: null,
createUser: json_.containsKey('createUser')
? ActingUser.fromJson(
json_['createUser'] as core.Map<core.String, core.dynamic>)
: null,
deleteTime: json_.containsKey('deleteTime')
? json_['deleteTime'] as core.String
: null,
deleteUser: json_.containsKey('deleteUser')
? ActingUser.fromJson(
json_['deleteUser'] as core.Map<core.String, core.dynamic>)
: null,
fileCount: json_.containsKey('fileCount')
? json_['fileCount'] as core.String
: null,
finalizeTime: json_.containsKey('finalizeTime')
? json_['finalizeTime'] as core.String
: null,
finalizeUser: json_.containsKey('finalizeUser')
? ActingUser.fromJson(
json_['finalizeUser'] as core.Map<core.String, core.dynamic>)
: null,
labels: json_.containsKey('labels')
? (json_['labels'] as core.Map<core.String, core.dynamic>).map(
(key, value) => core.MapEntry(
key,
value as core.String,
),
)
: null,
name: json_.containsKey('name') ? json_['name'] as core.String : null,
status: json_.containsKey('status')
? json_['status'] as core.String
: null,
versionBytes: json_.containsKey('versionBytes')
? json_['versionBytes'] as core.String
: null,
);