/* Options: Date: 2024-12-22 21:50:54 Version: 8.51 Tip: To override a DTO option, remove "//" prefix before updating BaseUrl: https://blazor-gallery.servicestack.net //GlobalNamespace: //AddServiceStackTypes: True //AddResponseStatus: False //AddImplicitVersion: //AddDescriptionAsComments: True IncludeTypes: PatchMediaTypes.* //ExcludeTypes: //DefaultImports: package:servicestack/servicestack.dart,dart:typed_data */ import 'package:servicestack/servicestack.dart'; import 'dart:typed_data'; class MediaTypes implements IConvertible { int? mediaTypeId; String? name; MediaTypes({this.mediaTypeId,this.name}); MediaTypes.fromJson(Map json) { fromMap(json); } fromMap(Map json) { mediaTypeId = json['mediaTypeId']; name = json['name']; return this; } Map toJson() => { 'mediaTypeId': mediaTypeId, 'name': name }; getTypeName() => "MediaTypes"; TypeContext? context = _ctx; } // @Route("/mediatypes/{MediaTypeId}", "PATCH") class PatchMediaTypes implements IReturn, IPatch, IPatchDb, IConvertible { int? mediaTypeId; String? name; PatchMediaTypes({this.mediaTypeId,this.name}); PatchMediaTypes.fromJson(Map json) { fromMap(json); } fromMap(Map json) { mediaTypeId = json['mediaTypeId']; name = json['name']; return this; } Map toJson() => { 'mediaTypeId': mediaTypeId, 'name': name }; createResponse() => IdResponse(); getResponseTypeName() => "IdResponse"; getTypeName() => "PatchMediaTypes"; TypeContext? context = _ctx; } TypeContext _ctx = TypeContext(library: 'blazor_gallery.servicestack.net', types: { 'MediaTypes': TypeInfo(TypeOf.Class, create:() => MediaTypes()), 'PatchMediaTypes': TypeInfo(TypeOf.Class, create:() => PatchMediaTypes()), });