/* Options: Date: 2026-04-04 01:27:02 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: GetSuburbs.* //ExcludeTypes: //DefaultImports: package:servicestack/servicestack.dart */ import 'package:servicestack/servicestack.dart'; class SuburbModel implements IConvertible { String? SuburbId; String? Name; String? StateId; String? StateName; String? PostCode; String? CountryId; String? CountryName; SuburbModel({this.SuburbId,this.Name,this.StateId,this.StateName,this.PostCode,this.CountryId,this.CountryName}); SuburbModel.fromJson(Map json) { fromMap(json); } fromMap(Map json) { SuburbId = json['SuburbId']; Name = json['Name']; StateId = json['StateId']; StateName = json['StateName']; PostCode = json['PostCode']; CountryId = json['CountryId']; CountryName = json['CountryName']; return this; } Map toJson() => { 'SuburbId': SuburbId, 'Name': Name, 'StateId': StateId, 'StateName': StateName, 'PostCode': PostCode, 'CountryId': CountryId, 'CountryName': CountryName }; getTypeName() => "SuburbModel"; TypeContext? context = _ctx; } // @ApiResponse(Description="List of suburbs matching the criteria") class GetSuburbsResponse implements IConvertible { List? Suburbs; ResponseStatus? ResponseStatus; GetSuburbsResponse({this.Suburbs,this.ResponseStatus}); GetSuburbsResponse.fromJson(Map json) { fromMap(json); } fromMap(Map json) { Suburbs = JsonConverters.fromJson(json['Suburbs'],'List',context!); ResponseStatus = JsonConverters.fromJson(json['ResponseStatus'],'ResponseStatus',context!); return this; } Map toJson() => { 'Suburbs': JsonConverters.toJson(Suburbs,'List',context!), 'ResponseStatus': JsonConverters.toJson(ResponseStatus,'ResponseStatus',context!) }; getTypeName() => "GetSuburbsResponse"; TypeContext? context = _ctx; } /** * Get all suburbs for the specified country, state and/or postcode */ // @Route("/suburbs") // @Api(Description="Get all suburbs for the specified country, state and/or postcode") class GetSuburbs implements IReturn, IConvertible, IGet { /** * Get suburbs matching the specified search text criteria. */ // @ApiMember(Description="Get suburbs matching the specified search text criteria.", Name="SearchText") String? SearchText; /** * State to get suburbs for */ // @ApiMember(Description="State to get suburbs for", Name="StateName") String? StateName; /** * Postcode to get suburbs for */ // @ApiMember(Description="Postcode to get suburbs for", Name="Postcode") String? PostCode; /** * Country to get suburbs for */ // @ApiMember(Description="Country to get suburbs for", Name="CountryId") String? CountryId; /** * Country to get suburbs for */ // @ApiMember(Description="Country to get suburbs for", Name="CountryName") String? CountryName; GetSuburbs({this.SearchText,this.StateName,this.PostCode,this.CountryId,this.CountryName}); GetSuburbs.fromJson(Map json) { fromMap(json); } fromMap(Map json) { SearchText = json['SearchText']; StateName = json['StateName']; PostCode = json['PostCode']; CountryId = json['CountryId']; CountryName = json['CountryName']; return this; } Map toJson() => { 'SearchText': SearchText, 'StateName': StateName, 'PostCode': PostCode, 'CountryId': CountryId, 'CountryName': CountryName }; createResponse() => GetSuburbsResponse(); getResponseTypeName() => "GetSuburbsResponse"; getTypeName() => "GetSuburbs"; TypeContext? context = _ctx; } TypeContext _ctx = TypeContext(library: 'pfapi.pstpf.com.au', types: { 'SuburbModel': TypeInfo(TypeOf.Class, create:() => SuburbModel()), 'GetSuburbsResponse': TypeInfo(TypeOf.Class, create:() => GetSuburbsResponse()), 'List': TypeInfo(TypeOf.Class, create:() => []), 'GetSuburbs': TypeInfo(TypeOf.Class, create:() => GetSuburbs()), });