/* Options: Date: 2024-11-23 13:05:52 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: Protoc.* //ExcludeTypes: //DefaultImports: package:servicestack/servicestack.dart,dart:typed_data */ import 'package:servicestack/servicestack.dart'; import 'dart:typed_data'; // @DataContract enum ProtocLang { Cpp, CSharp, Dart, Java, JavaLite, ObjectiveC, Php, Python, Ruby, Go, JavaScriptClosure, JavaScriptCommonJs, JavaScriptNodeJs, Swift, TypeScript, TypeScriptBinary, } class ProtocResponse implements IConvertible { ProtocLang? lang; Map? generatedFiles; String? archiveUrl; ResponseStatus? responseStatus; ProtocResponse({this.lang,this.generatedFiles,this.archiveUrl,this.responseStatus}); ProtocResponse.fromJson(Map json) { fromMap(json); } fromMap(Map json) { lang = JsonConverters.fromJson(json['lang'],'ProtocLang',context!); generatedFiles = JsonConverters.toStringMap(json['generatedFiles']); archiveUrl = json['archiveUrl']; responseStatus = JsonConverters.fromJson(json['responseStatus'],'ResponseStatus',context!); return this; } Map toJson() => { 'lang': JsonConverters.toJson(lang,'ProtocLang',context!), 'generatedFiles': generatedFiles, 'archiveUrl': archiveUrl, 'responseStatus': JsonConverters.toJson(responseStatus,'ResponseStatus',context!) }; getTypeName() => "ProtocResponse"; TypeContext? context = _ctx; } // @Route("/protoc/{Lang}") class Protoc implements IReturn, IConvertible, IPost { ProtocLang? lang; Map? files; String? protoUrl; Protoc({this.lang,this.files,this.protoUrl}); Protoc.fromJson(Map json) { fromMap(json); } fromMap(Map json) { lang = JsonConverters.fromJson(json['lang'],'ProtocLang',context!); files = JsonConverters.toStringMap(json['files']); protoUrl = json['protoUrl']; return this; } Map toJson() => { 'lang': JsonConverters.toJson(lang,'ProtocLang',context!), 'files': files, 'protoUrl': protoUrl }; createResponse() => ProtocResponse(); getResponseTypeName() => "ProtocResponse"; getTypeName() => "Protoc"; TypeContext? context = _ctx; } TypeContext _ctx = TypeContext(library: 'grpc.servicestack.net', types: { 'ProtocLang': TypeInfo(TypeOf.Enum, enumValues:ProtocLang.values), 'ProtocResponse': TypeInfo(TypeOf.Class, create:() => ProtocResponse()), 'Protoc': TypeInfo(TypeOf.Class, create:() => Protoc()), });