/* Options: Date: 2026-04-17 20:38:22 Version: 6.110 Tip: To override a DTO option, remove "//" prefix before updating BaseUrl: https://qlcn-api.vsmlab.vn //GlobalNamespace: //AddServiceStackTypes: True //AddResponseStatus: False //AddImplicitVersion: //AddDescriptionAsComments: True IncludeTypes: UpdateProviderRequest.* //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? phone; String? bankAccount; String? bankName; String? additionalInfo; int? providerType; DateTime? createdAt; int? createdBy; Provider({this.id,this.name,this.taxCode,this.address,this.email,this.phone,this.bankAccount,this.bankName,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']; phone = json['phone']; bankAccount = json['bankAccount']; bankName = json['bankName']; 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, 'phone': phone, 'bankAccount': bankAccount, 'bankName': bankName, 'additionalInfo': additionalInfo, 'providerType': providerType, 'createdAt': JsonConverters.toJson(createdAt,'DateTime',context!), 'createdBy': createdBy }; getTypeName() => "Provider"; TypeContext? context = _ctx; } // @Route("/provider/{Id}", "PUT") class UpdateProviderRequest implements IReturn, IConvertible, IPut { int? id; String? name; String? taxCode; String? address; String? email; String? phone; String? telephone; String? phoneNumber; String? mst; String? bankAccount; String? bankName; String? additionalInfo; int? providerType; UpdateProviderRequest({this.id,this.name,this.taxCode,this.address,this.email,this.phone,this.telephone,this.phoneNumber,this.mst,this.bankAccount,this.bankName,this.additionalInfo,this.providerType}); UpdateProviderRequest.fromJson(Map json) { fromMap(json); } fromMap(Map json) { id = json['id']; name = json['name']; taxCode = json['taxCode']; address = json['address']; email = json['email']; phone = json['phone']; telephone = json['telephone']; phoneNumber = json['phoneNumber']; mst = json['mst']; bankAccount = json['bankAccount']; bankName = json['bankName']; additionalInfo = json['additionalInfo']; providerType = json['providerType']; return this; } Map toJson() => { 'id': id, 'name': name, 'taxCode': taxCode, 'address': address, 'email': email, 'phone': phone, 'telephone': telephone, 'phoneNumber': phoneNumber, 'mst': mst, 'bankAccount': bankAccount, 'bankName': bankName, 'additionalInfo': additionalInfo, 'providerType': providerType }; createResponse() => Provider(); getResponseTypeName() => "Provider"; getTypeName() => "UpdateProviderRequest"; TypeContext? context = _ctx; } TypeContext _ctx = TypeContext(library: 'qlcn_api.vsmlab.vn', types: { 'Provider': TypeInfo(TypeOf.Class, create:() => Provider()), 'UpdateProviderRequest': TypeInfo(TypeOf.Class, create:() => UpdateProviderRequest()), });