/* Options: Date: 2024-12-29 02:52:34 Version: 8.22 Tip: To override a DTO option, remove "//" prefix before updating BaseUrl: https://data.regent-college.edu //GlobalNamespace: //AddServiceStackTypes: True //AddResponseStatus: False //AddImplicitVersion: //AddDescriptionAsComments: True IncludeTypes: RegistrationCreateRequest.* //ExcludeTypes: //DefaultImports: package:servicestack/servicestack.dart,dart:typed_data */ import 'package:servicestack/servicestack.dart'; import 'dart:typed_data'; class RegistrationCreateResponse implements IConvertible { ResponseStatus? responseStatus; String? transaction_uuid; int? regent_id; String? course_name; String? course_title; double? amount; bool? is_audit; RegistrationCreateResponse({this.responseStatus,this.transaction_uuid,this.regent_id,this.course_name,this.course_title,this.amount,this.is_audit}); RegistrationCreateResponse.fromJson(Map json) { fromMap(json); } fromMap(Map json) { responseStatus = JsonConverters.fromJson(json['responseStatus'],'ResponseStatus',context!); transaction_uuid = json['transaction_uuid']; regent_id = json['regent_id']; course_name = json['course_name']; course_title = json['course_title']; amount = JsonConverters.toDouble(json['amount']); is_audit = json['is_audit']; return this; } Map toJson() => { 'responseStatus': JsonConverters.toJson(responseStatus,'ResponseStatus',context!), 'transaction_uuid': transaction_uuid, 'regent_id': regent_id, 'course_name': course_name, 'course_title': course_title, 'amount': amount, 'is_audit': is_audit }; getTypeName() => "RegistrationCreateResponse"; TypeContext? context = _ctx; } // @Route("/Registration/Create/{uuid}", "POST") class RegistrationCreateRequest implements IReturn, IConvertible, IPost { String? uuid; String? transaction_uuid; String? section_uuid; double? amount; bool? is_audit; String? authorizing_uuid; RegistrationCreateRequest({this.uuid,this.transaction_uuid,this.section_uuid,this.amount,this.is_audit,this.authorizing_uuid}); RegistrationCreateRequest.fromJson(Map json) { fromMap(json); } fromMap(Map json) { uuid = json['uuid']; transaction_uuid = json['transaction_uuid']; section_uuid = json['section_uuid']; amount = JsonConverters.toDouble(json['amount']); is_audit = json['is_audit']; authorizing_uuid = json['authorizing_uuid']; return this; } Map toJson() => { 'uuid': uuid, 'transaction_uuid': transaction_uuid, 'section_uuid': section_uuid, 'amount': amount, 'is_audit': is_audit, 'authorizing_uuid': authorizing_uuid }; createResponse() => RegistrationCreateResponse(); getResponseTypeName() => "RegistrationCreateResponse"; getTypeName() => "RegistrationCreateRequest"; TypeContext? context = _ctx; } TypeContext _ctx = TypeContext(library: 'data.regent_college.edu', types: { 'RegistrationCreateResponse': TypeInfo(TypeOf.Class, create:() => RegistrationCreateResponse()), 'RegistrationCreateRequest': TypeInfo(TypeOf.Class, create:() => RegistrationCreateRequest()), });