Billhighway Cloud API

<back to all web services

FormBuilderPlanTypeRq

The following routes are available for this service:
GET/signup/api/forms/templates/nat/{nationalID}/chap/{chapID}/formBuilderPlanTypeID/{formBuilderPlanTypeID}/formBuilderPlanType
import 'package:servicestack/servicestack.dart';

class FormBuilderPlanType implements IConvertible
{
    int? NationalID;
    int? ChapID;
    int? FormBuilderPlanTypeID;
    int? ThemeID;
    String? RelativeGroupInfoServiceApi;
    String? RelativeGroupInfoServiceWithUserApi;

    FormBuilderPlanType({this.NationalID,this.ChapID,this.FormBuilderPlanTypeID,this.ThemeID,this.RelativeGroupInfoServiceApi,this.RelativeGroupInfoServiceWithUserApi});
    FormBuilderPlanType.fromJson(Map<String, dynamic> json) { fromMap(json); }

    fromMap(Map<String, dynamic> json) {
        NationalID = json['NationalID'];
        ChapID = json['ChapID'];
        FormBuilderPlanTypeID = json['FormBuilderPlanTypeID'];
        ThemeID = json['ThemeID'];
        RelativeGroupInfoServiceApi = json['RelativeGroupInfoServiceApi'];
        RelativeGroupInfoServiceWithUserApi = json['RelativeGroupInfoServiceWithUserApi'];
        return this;
    }

    Map<String, dynamic> toJson() => {
        'NationalID': NationalID,
        'ChapID': ChapID,
        'FormBuilderPlanTypeID': FormBuilderPlanTypeID,
        'ThemeID': ThemeID,
        'RelativeGroupInfoServiceApi': RelativeGroupInfoServiceApi,
        'RelativeGroupInfoServiceWithUserApi': RelativeGroupInfoServiceWithUserApi
    };

    getTypeName() => "FormBuilderPlanType";
    TypeContext? context = _ctx;
}

class FormBuilderPlanTypeRs implements IApiResponse, IConvertible
{
    List<FormBuilderPlanType>? FormBuilderPlanTypes;

    FormBuilderPlanTypeRs({this.FormBuilderPlanTypes});
    FormBuilderPlanTypeRs.fromJson(Map<String, dynamic> json) { fromMap(json); }

    fromMap(Map<String, dynamic> json) {
        FormBuilderPlanTypes = JsonConverters.fromJson(json['FormBuilderPlanTypes'],'List<FormBuilderPlanType>',context!);
        return this;
    }

    Map<String, dynamic> toJson() => {
        'FormBuilderPlanTypes': JsonConverters.toJson(FormBuilderPlanTypes,'List<FormBuilderPlanType>',context!)
    };

    getTypeName() => "FormBuilderPlanTypeRs";
    TypeContext? context = _ctx;
}

class FormBuilderPlanTypeRq implements IApiRequest, IConvertible
{
    int? NationalID;
    int? ChapID;
    int? FormBuilderPlanTypeID;

    FormBuilderPlanTypeRq({this.NationalID,this.ChapID,this.FormBuilderPlanTypeID});
    FormBuilderPlanTypeRq.fromJson(Map<String, dynamic> json) { fromMap(json); }

    fromMap(Map<String, dynamic> json) {
        NationalID = json['NationalID'];
        ChapID = json['ChapID'];
        FormBuilderPlanTypeID = json['FormBuilderPlanTypeID'];
        return this;
    }

    Map<String, dynamic> toJson() => {
        'NationalID': NationalID,
        'ChapID': ChapID,
        'FormBuilderPlanTypeID': FormBuilderPlanTypeID
    };

    getTypeName() => "FormBuilderPlanTypeRq";
    TypeContext? context = _ctx;
}

TypeContext _ctx = TypeContext(library: 'devapi.billhighway.com', types: <String, TypeInfo> {
    'FormBuilderPlanType': TypeInfo(TypeOf.Class, create:() => FormBuilderPlanType()),
    'FormBuilderPlanTypeRs': TypeInfo(TypeOf.Class, create:() => FormBuilderPlanTypeRs()),
    'List<FormBuilderPlanType>': TypeInfo(TypeOf.Class, create:() => <FormBuilderPlanType>[]),
    'FormBuilderPlanTypeRq': TypeInfo(TypeOf.Class, create:() => FormBuilderPlanTypeRq()),
});

Dart FormBuilderPlanTypeRq DTOs

To override the Content-type in your clients, use the HTTP Accept Header, append the .jsv suffix or ?format=jsv

HTTP + JSV

The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.

GET /signup/api/forms/templates/nat/{nationalID}/chap/{chapID}/formBuilderPlanTypeID/{formBuilderPlanTypeID}/formBuilderPlanType HTTP/1.1 
Host: devapi.billhighway.com 
Accept: text/jsv
HTTP/1.1 200 OK
Content-Type: text/jsv
Content-Length: length

{
	FormBuilderPlanTypes: 
	[
		{
			NationalID: 0,
			ChapID: 0,
			FormBuilderPlanTypeID: 0,
			ThemeID: 0,
			RelativeGroupInfoServiceApi: String,
			RelativeGroupInfoServiceWithUserApi: String
		}
	]
}