/* Options: Date: 2024-12-23 12:48:21 Version: 8.0 Tip: To override a DTO option, remove "//" prefix before updating BaseUrl: https://consumer-api.brovs.com //GlobalNamespace: ConsumerApi //AddServiceStackTypes: True //AddResponseStatus: False //AddImplicitVersion: //AddDescriptionAsComments: True IncludeTypes: CustomImageGetRequest.* //ExcludeTypes: //DefaultImports: package:servicestack/servicestack.dart */ library ConsumerApi; import 'package:servicestack/servicestack.dart'; enum CustomImageSlug { SaveFoodAndMoney, } class CustomImageGetResponse implements IConvertible { CustomImageSlug? slug; String? imageUrl; CustomImageGetResponse({this.slug,this.imageUrl}); CustomImageGetResponse.fromJson(Map json) { fromMap(json); } fromMap(Map json) { slug = JsonConverters.fromJson(json['slug'],'CustomImageSlug',context!); imageUrl = json['imageUrl']; return this; } Map toJson() => { 'slug': JsonConverters.toJson(slug,'CustomImageSlug',context!), 'imageUrl': imageUrl }; getTypeName() => "CustomImageGetResponse"; TypeContext? context = _ctx; } // @Route("/assets/CustomImageGet", "GET") class CustomImageGetRequest implements IReturn, IGet, IConvertible { CustomImageSlug? slug; CustomImageGetRequest({this.slug}); CustomImageGetRequest.fromJson(Map json) { fromMap(json); } fromMap(Map json) { slug = JsonConverters.fromJson(json['slug'],'CustomImageSlug',context!); return this; } Map toJson() => { 'slug': JsonConverters.toJson(slug,'CustomImageSlug',context!) }; createResponse() => CustomImageGetResponse(); getResponseTypeName() => "CustomImageGetResponse"; getTypeName() => "CustomImageGetRequest"; TypeContext? context = _ctx; } TypeContext _ctx = TypeContext(library: 'ConsumerApi', types: { 'CustomImageSlug': TypeInfo(TypeOf.Enum, enumValues:CustomImageSlug.values), 'CustomImageGetResponse': TypeInfo(TypeOf.Class, create:() => CustomImageGetResponse()), 'CustomImageGetRequest': TypeInfo(TypeOf.Class, create:() => CustomImageGetRequest()), });