/* Options: Date: 2024-09-19 23:18:05 Version: 8.30 Tip: To override a DTO option, remove "//" prefix before updating BaseUrl: https://initiation-pen.sirva.com //GlobalNamespace: //AddServiceStackTypes: True //AddResponseStatus: False //AddImplicitVersion: //AddDescriptionAsComments: True IncludeTypes: ContainerItemsRequest.* //ExcludeTypes: //DefaultImports: package:servicestack/servicestack.dart */ import 'package:servicestack/servicestack.dart'; abstract class DocumentRequestBase { /** * ExternalID */ // @ApiMember(Description="ExternalID", ExcludeInSchema=true, IsRequired=true, ParameterType="path") String? ExternalId; DocumentRequestBase({this.ExternalId}); DocumentRequestBase.fromJson(Map json) { fromMap(json); } fromMap(Map json) { ExternalId = json['ExternalId']; return this; } Map toJson() => { 'ExternalId': ExternalId }; getTypeName() => "DocumentRequestBase"; TypeContext? context = _ctx; } abstract class ResponseBase { String? Message; bool? IsSuccess; ResponseBase({this.Message,this.IsSuccess}); ResponseBase.fromJson(Map json) { fromMap(json); } fromMap(Map json) { Message = json['Message']; IsSuccess = json['IsSuccess']; return this; } Map toJson() => { 'Message': Message, 'IsSuccess': IsSuccess }; getTypeName() => "ResponseBase"; TypeContext? context = _ctx; } class ContainerItemsResponse extends ResponseBase implements IConvertible { List? ContainerItems; ContainerItemsResponse({this.ContainerItems}); ContainerItemsResponse.fromJson(Map json) { fromMap(json); } fromMap(Map json) { super.fromMap(json); ContainerItems = JsonConverters.fromJson(json['ContainerItems'],'List',context!); return this; } Map toJson() => super.toJson()..addAll({ 'ContainerItems': JsonConverters.toJson(ContainerItems,'List',context!) }); getTypeName() => "ContainerItemsResponse"; TypeContext? context = _ctx; } // @Route("/documents/containerItems", "POST, PUT") class ContainerItemsRequest extends DocumentRequestBase implements IReturn, IConvertible, IPost { ContainerItemsRequest(); ContainerItemsRequest.fromJson(Map json) : super.fromJson(json); fromMap(Map json) { super.fromMap(json); return this; } Map toJson() => super.toJson(); createResponse() => ContainerItemsResponse(); getResponseTypeName() => "ContainerItemsResponse"; getTypeName() => "ContainerItemsRequest"; TypeContext? context = _ctx; } TypeContext _ctx = TypeContext(library: 'initiation_pen.sirva.com', types: { 'DocumentRequestBase': TypeInfo(TypeOf.AbstractClass), 'ResponseBase': TypeInfo(TypeOf.AbstractClass), 'ContainerItemsResponse': TypeInfo(TypeOf.Class, create:() => ContainerItemsResponse()), 'ContainerItemsRequest': TypeInfo(TypeOf.Class, create:() => ContainerItemsRequest()), });