/* Options: Date: 2024-05-09 09:52:42 Version: 8.23 Tip: To override a DTO option, remove "//" prefix before updating BaseUrl: https://test.servicestack.net //GlobalNamespace: //AddServiceStackTypes: True //AddResponseStatus: False //AddImplicitVersion: //AddDescriptionAsComments: True IncludeTypes: Message.* //ExcludeTypes: //DefaultImports: package:servicestack/servicestack.dart,dart:typed_data */ import 'package:servicestack/servicestack.dart'; import 'dart:typed_data'; // @Route("/messages/{Id}", "PUT") class Message implements IReturn, IConvertible, IPut { int? id; String? name; Message({this.id,this.name}); Message.fromJson(Map json) { fromMap(json); } fromMap(Map json) { id = json['id']; name = json['name']; return this; } Map toJson() => { 'id': id, 'name': name }; createResponse() => Message(); getResponseTypeName() => "Message"; getTypeName() => "Message"; TypeContext? context = _ctx; } TypeContext _ctx = TypeContext(library: 'test.servicestack.net', types: { 'Message': TypeInfo(TypeOf.Class, create:() => Message()), });