Upload.fromJson constructor
Upload.fromJson(
- Map json_
Implementation
Upload.fromJson(core.Map json_)
: this(
accountId: json_.containsKey('accountId')
? json_['accountId'] as core.String
: null,
customDataSourceId: json_.containsKey('customDataSourceId')
? json_['customDataSourceId'] as core.String
: null,
errors: json_.containsKey('errors')
? (json_['errors'] as core.List)
.map((value) => value as core.String)
.toList()
: null,
id: json_.containsKey('id') ? json_['id'] as core.String : null,
kind: json_.containsKey('kind') ? json_['kind'] as core.String : null,
status: json_.containsKey('status')
? json_['status'] as core.String
: null,
uploadTime: json_.containsKey('uploadTime')
? core.DateTime.parse(json_['uploadTime'] as core.String)
: null,
);