/* Options: Date: 2024-09-19 22:55:19 Version: 8.30 Tip: To override a DTO option, remove "//" prefix before updating BaseUrl: https://initiation-test.sirva.com //GlobalNamespace: //AddServiceStackTypes: True //AddResponseStatus: False //AddImplicitVersion: //AddDescriptionAsComments: True IncludeTypes: ExtendSasRequest.* //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 ExtendSasResponse extends ResponseBase implements IConvertible { String? Link; ExtendSasResponse({this.Link}); ExtendSasResponse.fromJson(Map json) { fromMap(json); } fromMap(Map json) { super.fromMap(json); Link = json['Link']; return this; } Map toJson() => super.toJson()..addAll({ 'Link': Link }); getTypeName() => "ExtendSasResponse"; TypeContext? context = _ctx; } // @Route("/documents/extendSas", "POST") class ExtendSasRequest extends DocumentRequestBase implements IReturn, IConvertible, IPost { String? FileName; /** * Month */ // @ApiMember(Description="Month", ExcludeInSchema=true, IsRequired=true, ParameterType="path") int? Month; /** * Day */ // @ApiMember(Description="Day", ExcludeInSchema=true, IsRequired=true, ParameterType="path") int? Day; ExtendSasRequest({this.FileName,this.Month,this.Day}); ExtendSasRequest.fromJson(Map json) { fromMap(json); } fromMap(Map json) { super.fromMap(json); FileName = json['FileName']; Month = json['Month']; Day = json['Day']; return this; } Map toJson() => super.toJson()..addAll({ 'FileName': FileName, 'Month': Month, 'Day': Day }); createResponse() => ExtendSasResponse(); getResponseTypeName() => "ExtendSasResponse"; getTypeName() => "ExtendSasRequest"; TypeContext? context = _ctx; } TypeContext _ctx = TypeContext(library: 'initiation_test.sirva.com', types: { 'DocumentRequestBase': TypeInfo(TypeOf.AbstractClass), 'ResponseBase': TypeInfo(TypeOf.AbstractClass), 'ExtendSasResponse': TypeInfo(TypeOf.Class, create:() => ExtendSasResponse()), 'ExtendSasRequest': TypeInfo(TypeOf.Class, create:() => ExtendSasRequest()), });