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, item) => core.MapEntry(
key,
item 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,
);