/* Options: Date: 2024-06-26 09:11:35 Version: 8.23 Tip: To override a DTO option, remove "//" prefix before updating BaseUrl: https://testapi.bokamera.se //GlobalNamespace: //AddServiceStackTypes: True //AddResponseStatus: False //AddImplicitVersion: //AddDescriptionAsComments: True IncludeTypes: NewsletterFieldTranslationsQuery.* //ExcludeTypes: //DefaultImports: package:servicestack/servicestack.dart */ import 'package:servicestack/servicestack.dart'; class BaseModel implements IConvertible { BaseModel(); BaseModel.fromJson(Map json) : super(); fromMap(Map json) { return this; } Map toJson() => {}; getTypeName() => "BaseModel"; TypeContext? context = _ctx; } class FieldTranslation extends BaseModel implements IConvertible { // @Required() String? Code; // @Required() String? Name; // @Required() String? Description; // @Required() String? Group; DateTime? ModifiedDate; int? Id; FieldTranslation({this.Code,this.Name,this.Description,this.Group,this.ModifiedDate,this.Id}); FieldTranslation.fromJson(Map json) { fromMap(json); } fromMap(Map json) { super.fromMap(json); Code = json['Code']; Name = json['Name']; Description = json['Description']; Group = json['Group']; ModifiedDate = JsonConverters.fromJson(json['ModifiedDate'],'DateTime',context!); Id = json['Id']; return this; } Map toJson() => super.toJson()..addAll({ 'Code': Code, 'Name': Name, 'Description': Description, 'Group': Group, 'ModifiedDate': JsonConverters.toJson(ModifiedDate,'DateTime',context!), 'Id': Id }); getTypeName() => "FieldTranslation"; TypeContext? context = _ctx; } class NewsletterFieldTranslationResponse implements IConvertible { /** * The field translation id */ // @ApiMember(Description="The field translation id") int? Id; /** * The field translation code. */ // @ApiMember(Description="The field translation code.") String? Code; /** * The field translation name. */ // @ApiMember(Description="The field translation name.") String? Name; /** * The field translation description. */ // @ApiMember(Description="The field translation description.") String? Description; /** * The field translation group. */ // @ApiMember(Description="The field translation group.") String? Group; NewsletterFieldTranslationResponse({this.Id,this.Code,this.Name,this.Description,this.Group}); NewsletterFieldTranslationResponse.fromJson(Map json) { fromMap(json); } fromMap(Map json) { Id = json['Id']; Code = json['Code']; Name = json['Name']; Description = json['Description']; Group = json['Group']; return this; } Map toJson() => { 'Id': Id, 'Code': Code, 'Name': Name, 'Description': Description, 'Group': Group }; getTypeName() => "NewsletterFieldTranslationResponse"; TypeContext? context = _ctx; } // @Route("/newsletter/fieldtranslations", "GET") // @ApiResponse(Description="You were unauthorized to call this service", StatusCode=401) // @ValidateRequest(Validator="IsAuthenticated") class NewsletterFieldTranslationsQuery extends QueryDb2 implements IReturn>, IConvertible, IGet { /** * The field translation id. */ // @ApiMember(Description="The field translation id.") int? Id; /** * The field translation group */ // @ApiMember(Description="The field translation group") String? Group; NewsletterFieldTranslationsQuery({this.Id,this.Group}); NewsletterFieldTranslationsQuery.fromJson(Map json) { fromMap(json); } fromMap(Map json) { super.fromMap(json); Id = json['Id']; Group = json['Group']; return this; } Map toJson() => super.toJson()..addAll({ 'Id': Id, 'Group': Group }); createResponse() => QueryResponse(); getResponseTypeName() => "QueryResponse"; getTypeName() => "NewsletterFieldTranslationsQuery"; TypeContext? context = _ctx; } TypeContext _ctx = TypeContext(library: 'testapi.bokamera.se', types: { 'BaseModel': TypeInfo(TypeOf.Class, create:() => BaseModel()), 'FieldTranslation': TypeInfo(TypeOf.Class, create:() => FieldTranslation()), 'NewsletterFieldTranslationResponse': TypeInfo(TypeOf.Class, create:() => NewsletterFieldTranslationResponse()), 'QueryResponse': TypeInfo(TypeOf.Class, create:() => QueryResponse()), 'NewsletterFieldTranslationsQuery': TypeInfo(TypeOf.Class, create:() => NewsletterFieldTranslationsQuery()), 'List': TypeInfo(TypeOf.Class, create:() => []), });