/* Options: Date: 2024-11-21 20:00:05 Version: 6.111 Tip: To override a DTO option, remove "//" prefix before updating BaseUrl: https://grpc.servicestack.net //GlobalNamespace: //AddServiceStackTypes: True //AddResponseStatus: False //AddImplicitVersion: //AddDescriptionAsComments: True IncludeTypes: Hello.* //ExcludeTypes: //DefaultImports: package:servicestack/servicestack.dart,dart:typed_data */ import 'package:servicestack/servicestack.dart'; import 'dart:typed_data'; class HelloResponse implements IConvertible { String? result; HelloResponse({this.result}); HelloResponse.fromJson(Map json) { fromMap(json); } fromMap(Map json) { result = json['result']; return this; } Map toJson() => { 'result': result }; getTypeName() => "HelloResponse"; TypeContext? context = _ctx; } // @Route("/hello") // @Route("/hello/{Name}") class Hello implements IReturn, IConvertible, IPost { String? name; Hello({this.name}); Hello.fromJson(Map json) { fromMap(json); } fromMap(Map json) { name = json['name']; return this; } Map toJson() => { 'name': name }; createResponse() => HelloResponse(); getResponseTypeName() => "HelloResponse"; getTypeName() => "Hello"; TypeContext? context = _ctx; } TypeContext _ctx = TypeContext(library: 'grpc.servicestack.net', types: { 'HelloResponse': TypeInfo(TypeOf.Class, create:() => HelloResponse()), 'Hello': TypeInfo(TypeOf.Class, create:() => Hello()), });