/* Options: Date: 2025-05-05 00:58:58 Version: 8.71 Tip: To override a DTO option, remove "//" prefix before updating BaseUrl: https://team.evovoice.io //GlobalNamespace: //AddServiceStackTypes: True //AddResponseStatus: False //AddImplicitVersion: //AddDescriptionAsComments: True IncludeTypes: GetMyContacts.* //ExcludeTypes: //DefaultImports: package:servicestack/servicestack.dart,dart:typed_data */ import 'package:servicestack/servicestack.dart'; import 'dart:typed_data'; enum AppContactTypes { User, Team, Contact, } class AppContact implements IConvertible { String? displayName; String? address; AppContactTypes? type; String? customerName; bool? canCall; bool? canChat; AppContact({this.displayName,this.address,this.type,this.customerName,this.canCall,this.canChat}); AppContact.fromJson(Map json) { fromMap(json); } fromMap(Map json) { displayName = json['displayName']; address = json['address']; type = JsonConverters.fromJson(json['type'],'AppContactTypes',context!); customerName = json['customerName']; canCall = json['canCall']; canChat = json['canChat']; return this; } Map toJson() => { 'displayName': displayName, 'address': address, 'type': JsonConverters.toJson(type,'AppContactTypes',context!), 'customerName': customerName, 'canCall': canCall, 'canChat': canChat }; getTypeName() => "AppContact"; TypeContext? context = _ctx; } class GetMyContactsResponse implements IConvertible { List? contacts; GetMyContactsResponse({this.contacts}); GetMyContactsResponse.fromJson(Map json) { fromMap(json); } fromMap(Map json) { contacts = JsonConverters.fromJson(json['contacts'],'List',context!); return this; } Map toJson() => { 'contacts': JsonConverters.toJson(contacts,'List',context!) }; getTypeName() => "GetMyContactsResponse"; TypeContext? context = _ctx; } /** * Gets the contacts associated with the authenticated user */ // @Route("/app/contacts", "GET") // @Api(Description="Gets the contacts associated with the authenticated user") class GetMyContacts implements IReturn, IConvertible, IGet { GetMyContacts(); GetMyContacts.fromJson(Map json) : super(); fromMap(Map json) { return this; } Map toJson() => {}; createResponse() => GetMyContactsResponse(); getResponseTypeName() => "GetMyContactsResponse"; getTypeName() => "GetMyContacts"; TypeContext? context = _ctx; } TypeContext _ctx = TypeContext(library: 'team.evovoice.io', types: { 'AppContactTypes': TypeInfo(TypeOf.Enum, enumValues:AppContactTypes.values), 'AppContact': TypeInfo(TypeOf.Class, create:() => AppContact()), 'GetMyContactsResponse': TypeInfo(TypeOf.Class, create:() => GetMyContactsResponse()), 'List': TypeInfo(TypeOf.Class, create:() => []), 'GetMyContacts': TypeInfo(TypeOf.Class, create:() => GetMyContacts()), });