123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869 |
- import 'notification.m.dart';
- class RegionDTO extends BaseDTO{
- String? regionVersion;
- String? languageType;
- String? reginData;
- RegionDTO({
- this.regionVersion,
- this.languageType,
- this.reginData,
- DateTime? createTime,
- DateTime? updateTime,
- }) : super(
- createTime: createTime,
- updateTime: updateTime,
- );
- factory RegionDTO.fromJson(Map<String, dynamic> map) {
- return RegionDTO(
- regionVersion: map['RegionVersion'],
- languageType: map['LanguageType'],
- reginData: map['ReginData'],
- createTime: map['CreateTime'] != null ? DateTime.parse(map['CreateTime']) : null,
- updateTime: map['UpdateTime'] != null ? DateTime.parse(map['UpdateTime']) : null,
- );
- }
- Map<String, dynamic> toJson() {
- final map = super.toJson();
- if (regionVersion != null)
- map['RegionVersion'] = regionVersion;
- if (languageType != null)
- map['LanguageType'] = languageType;
- if (reginData != null)
- map['ReginData'] = reginData;
- return map;
- }
- }
- class GetRegionsRequest {
- String? version;
- String? languageType;
- GetRegionsRequest({
- this.version,
- this.languageType,
- });
- factory GetRegionsRequest.fromJson(Map<String, dynamic> map) {
- return GetRegionsRequest(
- version: map['Version'],
- languageType: map['LanguageType'],
- );
- }
- Map<String, dynamic> toJson() {
- final map = Map<String, dynamic>();
- if (version != null) {
- map['Version'] = version;
- }
- if (languageType != null) {
- map['LanguageType'] = languageType;
- }
- return map;
- }
- }
|