/* Options: Date: 2025-05-04 23:49:25 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: GetActiveCalls.* //ExcludeTypes: //DefaultImports: package:servicestack/servicestack.dart,dart:typed_data */ import 'package:servicestack/servicestack.dart'; import 'dart:typed_data'; class CallInfo implements IConvertible { String? accountSid; String? answeredBy; String? callerName; String? dateCreated; String? dateUpdated; String? direction; int? duration; String? endTime; String? forwardedFrom; String? from; String? fromFormatted; String? parentCallSid; String? phoneNumberSid; double? price; String? priceUnit; String? sid; String? startTime; String? status; String? to; String? toFormatted; String? uri; CallInfo({this.accountSid,this.answeredBy,this.callerName,this.dateCreated,this.dateUpdated,this.direction,this.duration,this.endTime,this.forwardedFrom,this.from,this.fromFormatted,this.parentCallSid,this.phoneNumberSid,this.price,this.priceUnit,this.sid,this.startTime,this.status,this.to,this.toFormatted,this.uri}); CallInfo.fromJson(Map json) { fromMap(json); } fromMap(Map json) { accountSid = json['accountSid']; answeredBy = json['answeredBy']; callerName = json['callerName']; dateCreated = json['dateCreated']; dateUpdated = json['dateUpdated']; direction = json['direction']; duration = json['duration']; endTime = json['endTime']; forwardedFrom = json['forwardedFrom']; from = json['from']; fromFormatted = json['fromFormatted']; parentCallSid = json['parentCallSid']; phoneNumberSid = json['phoneNumberSid']; price = JsonConverters.toDouble(json['price']); priceUnit = json['priceUnit']; sid = json['sid']; startTime = json['startTime']; status = json['status']; to = json['to']; toFormatted = json['toFormatted']; uri = json['uri']; return this; } Map toJson() => { 'accountSid': accountSid, 'answeredBy': answeredBy, 'callerName': callerName, 'dateCreated': dateCreated, 'dateUpdated': dateUpdated, 'direction': direction, 'duration': duration, 'endTime': endTime, 'forwardedFrom': forwardedFrom, 'from': from, 'fromFormatted': fromFormatted, 'parentCallSid': parentCallSid, 'phoneNumberSid': phoneNumberSid, 'price': price, 'priceUnit': priceUnit, 'sid': sid, 'startTime': startTime, 'status': status, 'to': to, 'toFormatted': toFormatted, 'uri': uri }; getTypeName() => "CallInfo"; TypeContext? context = _ctx; } class GetActiveCallsResponse implements IConvertible { List? calls; GetActiveCallsResponse({this.calls}); GetActiveCallsResponse.fromJson(Map json) { fromMap(json); } fromMap(Map json) { calls = JsonConverters.fromJson(json['calls'],'List',context!); return this; } Map toJson() => { 'calls': JsonConverters.toJson(calls,'List',context!) }; getTypeName() => "GetActiveCallsResponse"; TypeContext? context = _ctx; } /** * Gets all activecalls */ // @Route("/calls/active", "GET") // @Api(Description="Gets all activecalls") class GetActiveCalls implements IReturn, IGet, IConvertible { /** * The account ID to retrieve for */ // @ApiMember(Description="The account ID to retrieve for") String? accountId; GetActiveCalls({this.accountId}); GetActiveCalls.fromJson(Map json) { fromMap(json); } fromMap(Map json) { accountId = json['accountId']; return this; } Map toJson() => { 'accountId': accountId }; createResponse() => GetActiveCallsResponse(); getResponseTypeName() => "GetActiveCallsResponse"; getTypeName() => "GetActiveCalls"; TypeContext? context = _ctx; } TypeContext _ctx = TypeContext(library: 'team.evovoice.io', types: { 'CallInfo': TypeInfo(TypeOf.Class, create:() => CallInfo()), 'GetActiveCallsResponse': TypeInfo(TypeOf.Class, create:() => GetActiveCallsResponse()), 'List': TypeInfo(TypeOf.Class, create:() => []), 'GetActiveCalls': TypeInfo(TypeOf.Class, create:() => GetActiveCalls()), });