fromJson static method
Implementation
static PreCreate fromJson(Map json) {
List<int> blockList;
final blockJson = json['block_list'];
if (blockJson != null) {
// ignore: no_leading_underscores_for_local_identifiers
final _blockValue = blockJson as List;
blockList = _blockValue.whereType<int>().toList();
} else {
blockList = [];
}
return PreCreate(
path: json['path'],
returnType: json['return_type'],
blockList: blockList,
errno: json['errno'],
requestId: json['request_id'],
uploadId: json['uploadid'],
);
}