/* Options: Date: 2025-12-06 08:30:32 Version: 8.80 Tip: To override a DTO option, remove "//" prefix before updating BaseUrl: https://api.dev.dynamics.trendsic.com //GlobalNamespace: //AddServiceStackTypes: True //AddResponseStatus: False //AddImplicitVersion: //AddDescriptionAsComments: True IncludeTypes: FFSectionRequest.* //ExcludeTypes: //DefaultImports: package:servicestack/servicestack.dart,dart:typed_data */ import 'package:servicestack/servicestack.dart'; import 'dart:typed_data'; class FFField implements IConvertible { String? Id; String? FFSectionId; int? FieldTypeId; int? x; int? y; int? height; int? width; String? Text; FFField({this.Id,this.FFSectionId,this.FieldTypeId,this.x,this.y,this.height,this.width,this.Text}); FFField.fromJson(Map json) { fromMap(json); } fromMap(Map json) { Id = json['Id']; FFSectionId = json['FFSectionId']; FieldTypeId = json['FieldTypeId']; x = json['x']; y = json['y']; height = json['height']; width = json['width']; Text = json['Text']; return this; } Map toJson() => { 'Id': Id, 'FFSectionId': FFSectionId, 'FieldTypeId': FieldTypeId, 'x': x, 'y': y, 'height': height, 'width': width, 'Text': Text }; getTypeName() => "FFField"; TypeContext? context = _ctx; } class FFFieldExtended extends FFField implements IConvertible { String? Name; bool? IsYesNo; FFFieldExtended({this.Name,this.IsYesNo}); FFFieldExtended.fromJson(Map json) { fromMap(json); } fromMap(Map json) { super.fromMap(json); Name = json['Name']; IsYesNo = json['IsYesNo']; return this; } Map toJson() => super.toJson()..addAll({ 'Name': Name, 'IsYesNo': IsYesNo }); getTypeName() => "FFFieldExtended"; TypeContext? context = _ctx; } class FFSection implements IConvertible { String? Id; String? FFAgentConfigId; int? SectionTypeId; String? Nickname; bool? ShowHeader; String? Header; int? height; int? width; int? x; int? y; bool? IsActive; bool? HasBorder; String? BorderColor; int? BorderWidth; int? BorderRadius; DateTime? DateCreated; DateTime? DateModified; FFSection({this.Id,this.FFAgentConfigId,this.SectionTypeId,this.Nickname,this.ShowHeader,this.Header,this.height,this.width,this.x,this.y,this.IsActive,this.HasBorder,this.BorderColor,this.BorderWidth,this.BorderRadius,this.DateCreated,this.DateModified}); FFSection.fromJson(Map json) { fromMap(json); } fromMap(Map json) { Id = json['Id']; FFAgentConfigId = json['FFAgentConfigId']; SectionTypeId = json['SectionTypeId']; Nickname = json['Nickname']; ShowHeader = json['ShowHeader']; Header = json['Header']; height = json['height']; width = json['width']; x = json['x']; y = json['y']; IsActive = json['IsActive']; HasBorder = json['HasBorder']; BorderColor = json['BorderColor']; BorderWidth = json['BorderWidth']; BorderRadius = json['BorderRadius']; DateCreated = JsonConverters.fromJson(json['DateCreated'],'DateTime',context!); DateModified = JsonConverters.fromJson(json['DateModified'],'DateTime',context!); return this; } Map toJson() => { 'Id': Id, 'FFAgentConfigId': FFAgentConfigId, 'SectionTypeId': SectionTypeId, 'Nickname': Nickname, 'ShowHeader': ShowHeader, 'Header': Header, 'height': height, 'width': width, 'x': x, 'y': y, 'IsActive': IsActive, 'HasBorder': HasBorder, 'BorderColor': BorderColor, 'BorderWidth': BorderWidth, 'BorderRadius': BorderRadius, 'DateCreated': JsonConverters.toJson(DateCreated,'DateTime',context!), 'DateModified': JsonConverters.toJson(DateModified,'DateTime',context!) }; getTypeName() => "FFSection"; TypeContext? context = _ctx; } class FFSectionExtended extends FFSection implements IConvertible { String? SectionTypeDesc; List? FFFields = []; FFSectionExtended({this.SectionTypeDesc,this.FFFields}); FFSectionExtended.fromJson(Map json) { fromMap(json); } fromMap(Map json) { super.fromMap(json); SectionTypeDesc = json['SectionTypeDesc']; FFFields = JsonConverters.fromJson(json['FFFields'],'List',context!); return this; } Map toJson() => super.toJson()..addAll({ 'SectionTypeDesc': SectionTypeDesc, 'FFFields': JsonConverters.toJson(FFFields,'List',context!) }); getTypeName() => "FFSectionExtended"; TypeContext? context = _ctx; } class FFSectionResponse implements IConvertible { ResponseStatus? ResponseStatus; FFSectionExtended? FFSection; FFSectionResponse({this.ResponseStatus,this.FFSection}); FFSectionResponse.fromJson(Map json) { fromMap(json); } fromMap(Map json) { ResponseStatus = JsonConverters.fromJson(json['ResponseStatus'],'ResponseStatus',context!); FFSection = JsonConverters.fromJson(json['FFSection'],'FFSectionExtended',context!); return this; } Map toJson() => { 'ResponseStatus': JsonConverters.toJson(ResponseStatus,'ResponseStatus',context!), 'FFSection': JsonConverters.toJson(FFSection,'FFSectionExtended',context!) }; getTypeName() => "FFSectionResponse"; TypeContext? context = _ctx; } // @Route("/v1/FFSection", "POST,PUT,OPTIONS") // @Route("/v1/FFSection/{Id}", "GET,DELETE,OPTIONS") class FFSectionRequest implements IReturn, IConvertible, IPost { String? Id; FFSectionExtended? FFSection; FFSectionRequest({this.Id,this.FFSection}); FFSectionRequest.fromJson(Map json) { fromMap(json); } fromMap(Map json) { Id = json['Id']; FFSection = JsonConverters.fromJson(json['FFSection'],'FFSectionExtended',context!); return this; } Map toJson() => { 'Id': Id, 'FFSection': JsonConverters.toJson(FFSection,'FFSectionExtended',context!) }; createResponse() => FFSectionResponse(); getResponseTypeName() => "FFSectionResponse"; getTypeName() => "FFSectionRequest"; TypeContext? context = _ctx; } TypeContext _ctx = TypeContext(library: 'api.dev.dynamics.trendsic.com', types: { 'FFField': TypeInfo(TypeOf.Class, create:() => FFField()), 'FFFieldExtended': TypeInfo(TypeOf.Class, create:() => FFFieldExtended()), 'FFSection': TypeInfo(TypeOf.Class, create:() => FFSection()), 'FFSectionExtended': TypeInfo(TypeOf.Class, create:() => FFSectionExtended()), 'List': TypeInfo(TypeOf.Class, create:() => []), 'FFSectionResponse': TypeInfo(TypeOf.Class, create:() => FFSectionResponse()), 'FFSectionRequest': TypeInfo(TypeOf.Class, create:() => FFSectionRequest()), });