toJsonString method
Implementation
String toJsonString() {
final Map<String, dynamic> map = {};
map['Channel'] = channel;
map['StreamType'] = streamType;
map['BeginTime'] = beginTime == null
? DateUtil.formatStartOfDay(beginTime)
: DateUtil.formatDateTime(beginTime!);
map['EndTime'] = endTime == null
? DateUtil.formatEndOfDay(endTime)
: DateUtil.formatDateTime(endTime!);
map['FileName'] = '';
return json.encode(map);
}