/* Options: Date: 2024-12-29 02:23:25 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: CRMCategoryUpsertRequest.* //ExcludeTypes: //DefaultImports: package:servicestack/servicestack.dart,dart:typed_data */ import 'package:servicestack/servicestack.dart'; import 'dart:typed_data'; // @Route("/DynamicsCRM/Category/Upsert", "POST") class CRMCategoryUpsertRequest implements IReturn, IConvertible, IPost { int? regent_id; String? category_name; String? description; DateTime? start_date; DateTime? end_date; bool? is_contact; bool? is_account; CRMCategoryUpsertRequest({this.regent_id,this.category_name,this.description,this.start_date,this.end_date,this.is_contact,this.is_account}); CRMCategoryUpsertRequest.fromJson(Map json) { fromMap(json); } fromMap(Map json) { regent_id = json['regent_id']; category_name = json['category_name']; description = json['description']; start_date = JsonConverters.fromJson(json['start_date'],'DateTime',context!); end_date = JsonConverters.fromJson(json['end_date'],'DateTime',context!); is_contact = json['is_contact']; is_account = json['is_account']; return this; } Map toJson() => { 'regent_id': regent_id, 'category_name': category_name, 'description': description, 'start_date': JsonConverters.toJson(start_date,'DateTime',context!), 'end_date': JsonConverters.toJson(end_date,'DateTime',context!), 'is_contact': is_contact, 'is_account': is_account }; createResponse() => ResponseStatus(); getResponseTypeName() => "ResponseStatus"; getTypeName() => "CRMCategoryUpsertRequest"; TypeContext? context = _ctx; } TypeContext _ctx = TypeContext(library: 'data.regent_college.edu', types: { 'CRMCategoryUpsertRequest': TypeInfo(TypeOf.Class, create:() => CRMCategoryUpsertRequest()), });