/* Options: Date: 2024-11-21 12:00:13 Version: 8.23 Tip: To override a DTO option, remove "//" prefix before updating BaseUrl: https://api.bokamera.se //GlobalNamespace: //AddServiceStackTypes: True //AddResponseStatus: False //AddImplicitVersion: //AddDescriptionAsComments: True IncludeTypes: FieldTranslationsQuery.* //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 FieldTranslationResponse 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; FieldTranslationResponse({this.Id,this.Code,this.Name,this.Description,this.Group}); FieldTranslationResponse.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() => "FieldTranslationResponse"; TypeContext? context = _ctx; } // @Route("/messages/fieldtranslations", "GET") // @ApiResponse(Description="You were unauthorized to call this service", StatusCode=401) // @ValidateRequest(Validator="IsAuthenticated") class FieldTranslationsQuery 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; FieldTranslationsQuery({this.Id,this.Group}); FieldTranslationsQuery.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() => "FieldTranslationsQuery"; TypeContext? context = _ctx; } TypeContext _ctx = TypeContext(library: 'api.bokamera.se', types: { 'BaseModel': TypeInfo(TypeOf.Class, create:() => BaseModel()), 'FieldTranslation': TypeInfo(TypeOf.Class, create:() => FieldTranslation()), 'FieldTranslationResponse': TypeInfo(TypeOf.Class, create:() => FieldTranslationResponse()), 'QueryResponse': TypeInfo(TypeOf.Class, create:() => QueryResponse()), 'FieldTranslationsQuery': TypeInfo(TypeOf.Class, create:() => FieldTranslationsQuery()), 'List': TypeInfo(TypeOf.Class, create:() => []), });