/* Options: Date: 2025-06-13 08:20:48 Version: 6.40 Tip: To override a DTO option, remove "//" prefix before updating BaseUrl: https://ws.jimsnwa.com //GlobalNamespace: //AddServiceStackTypes: True //AddResponseStatus: False //AddImplicitVersion: //AddDescriptionAsComments: True IncludeTypes: GetNewsRQ.* //ExcludeTypes: //DefaultImports: package:servicestack/servicestack.dart,dart:typed_data */ import 'package:servicestack/servicestack.dart'; import 'dart:typed_data'; class NewsData implements IConvertible { int? code; DateTime? datenews; String? category; String? title; String? intro; String? author; String? image; String? news; NewsData({this.code,this.datenews,this.category,this.title,this.intro,this.author,this.image,this.news}); NewsData.fromJson(Map json) { fromMap(json); } fromMap(Map json) { code = json['code']; datenews = JsonConverters.fromJson(json['datenews'],'DateTime',context!); category = json['category']; title = json['title']; intro = json['intro']; author = json['author']; image = json['image']; news = json['news']; return this; } Map toJson() => { 'code': code, 'datenews': JsonConverters.toJson(datenews,'DateTime',context!), 'category': category, 'title': title, 'intro': intro, 'author': author, 'image': image, 'news': news }; getTypeName() => "NewsData"; TypeContext? context = _ctx; } class GetNewsRS implements IConvertible { String? Code; String? ErrorMessage; List? Data; GetNewsRS({this.Code,this.ErrorMessage,this.Data}); GetNewsRS.fromJson(Map json) { fromMap(json); } fromMap(Map json) { Code = json['Code']; ErrorMessage = json['ErrorMessage']; Data = JsonConverters.fromJson(json['Data'],'List',context!); return this; } Map toJson() => { 'Code': Code, 'ErrorMessage': ErrorMessage, 'Data': JsonConverters.toJson(Data,'List',context!) }; getTypeName() => "GetNewsRS"; TypeContext? context = _ctx; } // @Route("/mobile/maps/news") class GetNewsRQ implements IReturn, IConvertible { String? Category; DateTime? Dateini; DateTime? Datefin; GetNewsRQ({this.Category,this.Dateini,this.Datefin}); GetNewsRQ.fromJson(Map json) { fromMap(json); } fromMap(Map json) { Category = json['Category']; Dateini = JsonConverters.fromJson(json['Dateini'],'DateTime',context!); Datefin = JsonConverters.fromJson(json['Datefin'],'DateTime',context!); return this; } Map toJson() => { 'Category': Category, 'Dateini': JsonConverters.toJson(Dateini,'DateTime',context!), 'Datefin': JsonConverters.toJson(Datefin,'DateTime',context!) }; createResponse() => GetNewsRS(); getResponseTypeName() => "GetNewsRS"; getTypeName() => "GetNewsRQ"; TypeContext? context = _ctx; } TypeContext _ctx = TypeContext(library: 'ws.jimsnwa.com', types: { 'NewsData': TypeInfo(TypeOf.Class, create:() => NewsData()), 'GetNewsRS': TypeInfo(TypeOf.Class, create:() => GetNewsRS()), 'List': TypeInfo(TypeOf.Class, create:() => []), 'GetNewsRQ': TypeInfo(TypeOf.Class, create:() => GetNewsRQ()), });