/* Options: Date: 2026-07-16 21:57:46 Version: 8.30 Tip: To override a DTO option, remove "//" prefix before updating BaseUrl: https://initiation-test.sirva.com //GlobalNamespace: //AddServiceStackTypes: True //AddResponseStatus: False //AddImplicitVersion: //AddDescriptionAsComments: True IncludeTypes: ConsumerInitiation.* //ExcludeTypes: //DefaultImports: package:servicestack/servicestack.dart */ import 'package:servicestack/servicestack.dart'; // @Route("/consumerinitiation", "POST") class ConsumerInitiation implements IPost, IConvertible { /** * First name of the consumer */ // @ApiMember(Description="First name of the consumer", IsRequired=true) String? FirstName; /** * Last name of the consumer */ // @ApiMember(Description="Last name of the consumer", IsRequired=true) String? LastName; /** * Program name */ // @ApiMember(Description="Program name", IsRequired=true) String? Program; /** * Company name */ // @ApiMember(Description="Company name", IsRequired=true) String? CompanyName; /** * Mobile phone number */ // @ApiMember(Description="Mobile phone number") String? MobileNumber; /** * Preferred email address */ // @ApiMember(Description="Preferred email address", IsRequired=true) String? PreferredEmail; /** * Current work location state */ // @ApiMember(Description="Current work location state") String? CurrentWorkState; /** * Current work location country */ // @ApiMember(Description="Current work location country") String? CurrentWorkCountry; /** * Destination work location state */ // @ApiMember(Description="Destination work location state") String? DestinationWorkState; /** * Destination work location country */ // @ApiMember(Description="Destination work location country") String? DestinationWorkCountry; /** * Preferred work location state */ // @ApiMember(Description="Preferred work location state") String? PreferredWorkState; /** * Preferred work location country */ // @ApiMember(Description="Preferred work location country") String? PreferredWorkCountry; ConsumerInitiation({this.FirstName,this.LastName,this.Program,this.CompanyName,this.MobileNumber,this.PreferredEmail,this.CurrentWorkState,this.CurrentWorkCountry,this.DestinationWorkState,this.DestinationWorkCountry,this.PreferredWorkState,this.PreferredWorkCountry}); ConsumerInitiation.fromJson(Map json) { fromMap(json); } fromMap(Map json) { FirstName = json['FirstName']; LastName = json['LastName']; Program = json['Program']; CompanyName = json['CompanyName']; MobileNumber = json['MobileNumber']; PreferredEmail = json['PreferredEmail']; CurrentWorkState = json['CurrentWorkState']; CurrentWorkCountry = json['CurrentWorkCountry']; DestinationWorkState = json['DestinationWorkState']; DestinationWorkCountry = json['DestinationWorkCountry']; PreferredWorkState = json['PreferredWorkState']; PreferredWorkCountry = json['PreferredWorkCountry']; return this; } Map toJson() => { 'FirstName': FirstName, 'LastName': LastName, 'Program': Program, 'CompanyName': CompanyName, 'MobileNumber': MobileNumber, 'PreferredEmail': PreferredEmail, 'CurrentWorkState': CurrentWorkState, 'CurrentWorkCountry': CurrentWorkCountry, 'DestinationWorkState': DestinationWorkState, 'DestinationWorkCountry': DestinationWorkCountry, 'PreferredWorkState': PreferredWorkState, 'PreferredWorkCountry': PreferredWorkCountry }; getTypeName() => "ConsumerInitiation"; TypeContext? context = _ctx; } TypeContext _ctx = TypeContext(library: 'initiation_test.sirva.com', types: { 'ConsumerInitiation': TypeInfo(TypeOf.Class, create:() => ConsumerInitiation()), });