92 lines
2.3 KiB
Dart
Executable File
92 lines
2.3 KiB
Dart
Executable File
class VideoLogEntity {
|
|
int? errorCode;
|
|
String? description;
|
|
String? errorMsg;
|
|
List<CloudStorageData>? data;
|
|
|
|
VideoLogEntity({this.errorCode, this.description, this.errorMsg, this.data});
|
|
|
|
VideoLogEntity.fromJson(Map<String, dynamic> json) {
|
|
errorCode = json['errorCode'];
|
|
description = json['description'];
|
|
errorMsg = json['errorMsg'];
|
|
if (json['data'] != null) {
|
|
data = <CloudStorageData>[];
|
|
json['data'].forEach((v) {
|
|
data!.add(CloudStorageData.fromJson(v));
|
|
});
|
|
}
|
|
}
|
|
|
|
Map<String, dynamic> toJson() {
|
|
final Map<String, dynamic> data = <String, dynamic>{};
|
|
data['errorCode'] = errorCode;
|
|
data['description'] = description;
|
|
data['errorMsg'] = errorMsg;
|
|
if (this.data != null) {
|
|
data['data'] = this.data!.map((v) => v.toJson()).toList();
|
|
}
|
|
return data;
|
|
}
|
|
}
|
|
|
|
class CloudStorageData {
|
|
String? date;
|
|
List<RecordListData>? recordList;
|
|
|
|
CloudStorageData({this.date, this.recordList});
|
|
|
|
CloudStorageData.fromJson(Map<String, dynamic> json) {
|
|
date = json['date'];
|
|
if (json['recordList'] != null) {
|
|
recordList = <RecordListData>[];
|
|
json['recordList'].forEach((v) {
|
|
recordList!.add(RecordListData.fromJson(v));
|
|
});
|
|
}
|
|
}
|
|
|
|
Map<String, dynamic> toJson() {
|
|
final Map<String, dynamic> data = <String, dynamic>{};
|
|
data['date'] = date;
|
|
if (recordList != null) {
|
|
data['recordList'] = recordList!.map((v) => v.toJson()).toList();
|
|
}
|
|
return data;
|
|
}
|
|
}
|
|
|
|
class RecordListData {
|
|
int? recordId;
|
|
int? operateDate;
|
|
String? imagesUrl;
|
|
String? videoUrl;
|
|
int? recordType;
|
|
bool? isSelect = false;
|
|
|
|
RecordListData(
|
|
{this.recordId,
|
|
this.operateDate,
|
|
this.imagesUrl,
|
|
this.videoUrl,
|
|
this.recordType});
|
|
|
|
RecordListData.fromJson(Map<String, dynamic> json) {
|
|
recordId = json['recordId'];
|
|
operateDate = json['operateDate'];
|
|
imagesUrl = json['imagesUrl'];
|
|
videoUrl = json['videoUrl'];
|
|
recordType = json['recordType'];
|
|
}
|
|
|
|
Map<String, dynamic> toJson() {
|
|
final Map<String, dynamic> data = <String, dynamic>{};
|
|
data['recordId'] = recordId;
|
|
data['operateDate'] = operateDate;
|
|
data['imagesUrl'] = imagesUrl;
|
|
data['videoUrl'] = videoUrl;
|
|
data['recordType'] = recordType;
|
|
return data;
|
|
}
|
|
}
|