/* Options: Date: 2026-04-04 01:23:13 Version: 8.52 Tip: To override a DTO option, remove "//" prefix before updating BaseUrl: https://pfapi.pstpf.com.au/api //GlobalNamespace: //AddServiceStackTypes: True //AddResponseStatus: False //AddImplicitVersion: //AddDescriptionAsComments: True IncludeTypes: GetStates.* //ExcludeTypes: //DefaultImports: package:servicestack/servicestack.dart */ import 'package:servicestack/servicestack.dart'; class StateModel implements IConvertible { String? StateId; String? Name; String? ShortName; StateModel({this.StateId,this.Name,this.ShortName}); StateModel.fromJson(Map json) { fromMap(json); } fromMap(Map json) { StateId = json['StateId']; Name = json['Name']; ShortName = json['ShortName']; return this; } Map toJson() => { 'StateId': StateId, 'Name': Name, 'ShortName': ShortName }; getTypeName() => "StateModel"; TypeContext? context = _ctx; } // @ApiResponse(Description="List of states") class GetStatesResponse implements IConvertible { List? States; ResponseStatus? ResponseStatus; GetStatesResponse({this.States,this.ResponseStatus}); GetStatesResponse.fromJson(Map json) { fromMap(json); } fromMap(Map json) { States = JsonConverters.fromJson(json['States'],'List',context!); ResponseStatus = JsonConverters.fromJson(json['ResponseStatus'],'ResponseStatus',context!); return this; } Map toJson() => { 'States': JsonConverters.toJson(States,'List',context!), 'ResponseStatus': JsonConverters.toJson(ResponseStatus,'ResponseStatus',context!) }; getTypeName() => "GetStatesResponse"; TypeContext? context = _ctx; } /** * Get states for the specified country */ // @Route("/states/{CountryId}") // @Api(Description="Get states for the specified country") class GetStates implements IReturn, IConvertible, IGet { /** * Get states for the specified country id */ // @ApiMember(Description="Get states for the specified country id", Name="CountryId") String? CountryId; GetStates({this.CountryId}); GetStates.fromJson(Map json) { fromMap(json); } fromMap(Map json) { CountryId = json['CountryId']; return this; } Map toJson() => { 'CountryId': CountryId }; createResponse() => GetStatesResponse(); getResponseTypeName() => "GetStatesResponse"; getTypeName() => "GetStates"; TypeContext? context = _ctx; } TypeContext _ctx = TypeContext(library: 'pfapi.pstpf.com.au', types: { 'StateModel': TypeInfo(TypeOf.Class, create:() => StateModel()), 'GetStatesResponse': TypeInfo(TypeOf.Class, create:() => GetStatesResponse()), 'List': TypeInfo(TypeOf.Class, create:() => []), 'GetStates': TypeInfo(TypeOf.Class, create:() => GetStates()), });