46 lines
823 B
Dart
46 lines
823 B
Dart
class MSource {
|
|
int? id;
|
|
|
|
String? name;
|
|
|
|
String? baseUrl;
|
|
|
|
String? lang;
|
|
|
|
bool? isFullData;
|
|
|
|
bool? hasCloudflare;
|
|
|
|
String? dateFormat;
|
|
|
|
String? dateFormatLocale;
|
|
|
|
String? apiUrl;
|
|
|
|
String? additionalParams;
|
|
|
|
MSource(
|
|
{this.id,
|
|
this.name,
|
|
this.baseUrl,
|
|
this.lang,
|
|
this.isFullData,
|
|
this.hasCloudflare,
|
|
this.dateFormat,
|
|
this.dateFormatLocale,
|
|
this.apiUrl,
|
|
this.additionalParams});
|
|
|
|
Map<String, dynamic> toJson() => {
|
|
'apiUrl': apiUrl,
|
|
'baseUrl': baseUrl,
|
|
'dateFormat': dateFormat,
|
|
'dateFormatLocale': dateFormatLocale,
|
|
'hasCloudflare': hasCloudflare,
|
|
'id': id,
|
|
'isFullData': isFullData,
|
|
'lang': lang,
|
|
'name': name,
|
|
'additionalParams': additionalParams
|
|
};
|
|
}
|