/* Options: Date: 2026-03-06 08:31:13 Version: 6.110 Tip: To override a DTO option, remove "//" prefix before updating BaseUrl: https://etc-api.vsmlab.vn //GlobalNamespace: //AddServiceStackTypes: True //AddResponseStatus: False //AddImplicitVersion: //AddDescriptionAsComments: True IncludeTypes: CreateProviderRequest.* //ExcludeTypes: //DefaultImports: package:servicestack/servicestack.dart */ import 'package:servicestack/servicestack.dart'; class Provider implements IConvertible { int? id; String? name; String? taxCode; String? address; String? email; String? additionalInfo; int? providerType; DateTime? createdAt; int? createdBy; Provider({this.id,this.name,this.taxCode,this.address,this.email,this.additionalInfo,this.providerType,this.createdAt,this.createdBy}); Provider.fromJson(Map json) { fromMap(json); } fromMap(Map json) { id = json['id']; name = json['name']; taxCode = json['taxCode']; address = json['address']; email = json['email']; additionalInfo = json['additionalInfo']; providerType = json['providerType']; createdAt = JsonConverters.fromJson(json['createdAt'],'DateTime',context!); createdBy = json['createdBy']; return this; } Map toJson() => { 'id': id, 'name': name, 'taxCode': taxCode, 'address': address, 'email': email, 'additionalInfo': additionalInfo, 'providerType': providerType, 'createdAt': JsonConverters.toJson(createdAt,'DateTime',context!), 'createdBy': createdBy }; getTypeName() => "Provider"; TypeContext? context = _ctx; } // @Route("/provider", "POST") class CreateProviderRequest implements IReturn, IConvertible, IPost { String? name; String? taxCode; String? address; String? email; String? additionalInfo; int? providerType; CreateProviderRequest({this.name,this.taxCode,this.address,this.email,this.additionalInfo,this.providerType}); CreateProviderRequest.fromJson(Map json) { fromMap(json); } fromMap(Map json) { name = json['name']; taxCode = json['taxCode']; address = json['address']; email = json['email']; additionalInfo = json['additionalInfo']; providerType = json['providerType']; return this; } Map toJson() => { 'name': name, 'taxCode': taxCode, 'address': address, 'email': email, 'additionalInfo': additionalInfo, 'providerType': providerType }; createResponse() => Provider(); getResponseTypeName() => "Provider"; getTypeName() => "CreateProviderRequest"; TypeContext? context = _ctx; } TypeContext _ctx = TypeContext(library: 'etc_api.vsmlab.vn', types: { 'Provider': TypeInfo(TypeOf.Class, create:() => Provider()), 'CreateProviderRequest': TypeInfo(TypeOf.Class, create:() => CreateProviderRequest()), });