Trendsic Platform Service

<back to all web services

SmartsheetsRequest

Requires Authentication
Requires any of the roles:Worker, Agent, Administrator
The following routes are available for this service:
GET/v1/Smartsheets/{AgentID}
GET/v1/Smartsheets
GET/v1/Smartsheets/{AgentID}/{SheetType}
import 'package:servicestack/servicestack.dart';
import 'dart:typed_data';

class Attachment implements IConvertible
{
    String? AttachmentId;
    String? TableName;
    String? FieldName;
    int? RecordId;
    String? AttachmentName;
    String? MimeType;
    Uint8List? AttachmentData = [];
    double? FileSizeInKB;
    DateTime? CreatedDate;
    String? CreatedBy;
    bool? NeedsOCR;
    DateTime? OCRDate;
    bool? IsSecurities;
    String? AWSKey;
    String? PresignedUrl;

    Attachment({this.AttachmentId,this.TableName,this.FieldName,this.RecordId,this.AttachmentName,this.MimeType,this.AttachmentData,this.FileSizeInKB,this.CreatedDate,this.CreatedBy,this.NeedsOCR,this.OCRDate,this.IsSecurities,this.AWSKey,this.PresignedUrl});
    Attachment.fromJson(Map<String, dynamic> json) { fromMap(json); }

    fromMap(Map<String, dynamic> json) {
        AttachmentId = json['AttachmentId'];
        TableName = json['TableName'];
        FieldName = json['FieldName'];
        RecordId = json['RecordId'];
        AttachmentName = json['AttachmentName'];
        MimeType = json['MimeType'];
        AttachmentData = JsonConverters.fromJson(json['AttachmentData'],'Uint8List',context!);
        FileSizeInKB = JsonConverters.toDouble(json['FileSizeInKB']);
        CreatedDate = JsonConverters.fromJson(json['CreatedDate'],'DateTime',context!);
        CreatedBy = json['CreatedBy'];
        NeedsOCR = json['NeedsOCR'];
        OCRDate = JsonConverters.fromJson(json['OCRDate'],'DateTime',context!);
        IsSecurities = json['IsSecurities'];
        AWSKey = json['AWSKey'];
        PresignedUrl = json['PresignedUrl'];
        return this;
    }

    Map<String, dynamic> toJson() => {
        'AttachmentId': AttachmentId,
        'TableName': TableName,
        'FieldName': FieldName,
        'RecordId': RecordId,
        'AttachmentName': AttachmentName,
        'MimeType': MimeType,
        'AttachmentData': JsonConverters.toJson(AttachmentData,'Uint8List',context!),
        'FileSizeInKB': FileSizeInKB,
        'CreatedDate': JsonConverters.toJson(CreatedDate,'DateTime',context!),
        'CreatedBy': CreatedBy,
        'NeedsOCR': NeedsOCR,
        'OCRDate': JsonConverters.toJson(OCRDate,'DateTime',context!),
        'IsSecurities': IsSecurities,
        'AWSKey': AWSKey,
        'PresignedUrl': PresignedUrl
    };

    getTypeName() => "Attachment";
    TypeContext? context = _ctx;
}

class Reminder implements IConvertible
{
    String? ReminderId;
    String? TableName;
    String? FieldName;
    int? RecordId;
    DateTime? ReminderDate;
    String? ReminderNote;
    DateTime? CreatedDate;
    String? CreatedBy;
    DateTime? CompletedDate;

    Reminder({this.ReminderId,this.TableName,this.FieldName,this.RecordId,this.ReminderDate,this.ReminderNote,this.CreatedDate,this.CreatedBy,this.CompletedDate});
    Reminder.fromJson(Map<String, dynamic> json) { fromMap(json); }

    fromMap(Map<String, dynamic> json) {
        ReminderId = json['ReminderId'];
        TableName = json['TableName'];
        FieldName = json['FieldName'];
        RecordId = json['RecordId'];
        ReminderDate = JsonConverters.fromJson(json['ReminderDate'],'DateTime',context!);
        ReminderNote = json['ReminderNote'];
        CreatedDate = JsonConverters.fromJson(json['CreatedDate'],'DateTime',context!);
        CreatedBy = json['CreatedBy'];
        CompletedDate = JsonConverters.fromJson(json['CompletedDate'],'DateTime',context!);
        return this;
    }

    Map<String, dynamic> toJson() => {
        'ReminderId': ReminderId,
        'TableName': TableName,
        'FieldName': FieldName,
        'RecordId': RecordId,
        'ReminderDate': JsonConverters.toJson(ReminderDate,'DateTime',context!),
        'ReminderNote': ReminderNote,
        'CreatedDate': JsonConverters.toJson(CreatedDate,'DateTime',context!),
        'CreatedBy': CreatedBy,
        'CompletedDate': JsonConverters.toJson(CompletedDate,'DateTime',context!)
    };

    getTypeName() => "Reminder";
    TypeContext? context = _ctx;
}

class SmartsheetsLife implements IConvertible
{
    int? ID;
    String? FirstName;
    String? LastName;
    String? PolicyNumber;
    String? PolicyType;
    String? CPT;
    String? AppDate;
    String? AgentName;
    int? AgentID;
    String? Phase;
    String? Notes;
    String? TransferAmount;
    String? AccountNumber;
    bool? Deleted;
    String? ModifiedBy;
    bool? Flagged;
    String? TransactionId;
    String? FaceValue;
    bool? HasChange;
    bool? HasConversation;
    bool? HasAgentMsg;
    bool? HasAdminMsg;
    List<Attachment>? Attachment = [];
    List<Reminder>? Reminder = [];
    String? Agents;
    bool? HasOCR;
    String? PolicyAssociateId;
    bool? HasRequiredDocuments;
    String? Phone;
    String? EmailAddress;
    String? ApprovedDate;
    String? ApprovedBy;

    SmartsheetsLife({this.ID,this.FirstName,this.LastName,this.PolicyNumber,this.PolicyType,this.CPT,this.AppDate,this.AgentName,this.AgentID,this.Phase,this.Notes,this.TransferAmount,this.AccountNumber,this.Deleted,this.ModifiedBy,this.Flagged,this.TransactionId,this.FaceValue,this.HasChange,this.HasConversation,this.HasAgentMsg,this.HasAdminMsg,this.Attachment,this.Reminder,this.Agents,this.HasOCR,this.PolicyAssociateId,this.HasRequiredDocuments,this.Phone,this.EmailAddress,this.ApprovedDate,this.ApprovedBy});
    SmartsheetsLife.fromJson(Map<String, dynamic> json) { fromMap(json); }

    fromMap(Map<String, dynamic> json) {
        ID = json['ID'];
        FirstName = json['FirstName'];
        LastName = json['LastName'];
        PolicyNumber = json['PolicyNumber'];
        PolicyType = json['PolicyType'];
        CPT = json['CPT'];
        AppDate = json['AppDate'];
        AgentName = json['AgentName'];
        AgentID = json['AgentID'];
        Phase = json['Phase'];
        Notes = json['Notes'];
        TransferAmount = json['TransferAmount'];
        AccountNumber = json['AccountNumber'];
        Deleted = json['Deleted'];
        ModifiedBy = json['ModifiedBy'];
        Flagged = json['Flagged'];
        TransactionId = json['TransactionId'];
        FaceValue = json['FaceValue'];
        HasChange = json['HasChange'];
        HasConversation = json['HasConversation'];
        HasAgentMsg = json['HasAgentMsg'];
        HasAdminMsg = json['HasAdminMsg'];
        Attachment = JsonConverters.fromJson(json['Attachment'],'List<Attachment>',context!);
        Reminder = JsonConverters.fromJson(json['Reminder'],'List<Reminder>',context!);
        Agents = json['Agents'];
        HasOCR = json['HasOCR'];
        PolicyAssociateId = json['PolicyAssociateId'];
        HasRequiredDocuments = json['HasRequiredDocuments'];
        Phone = json['Phone'];
        EmailAddress = json['EmailAddress'];
        ApprovedDate = json['ApprovedDate'];
        ApprovedBy = json['ApprovedBy'];
        return this;
    }

    Map<String, dynamic> toJson() => {
        'ID': ID,
        'FirstName': FirstName,
        'LastName': LastName,
        'PolicyNumber': PolicyNumber,
        'PolicyType': PolicyType,
        'CPT': CPT,
        'AppDate': AppDate,
        'AgentName': AgentName,
        'AgentID': AgentID,
        'Phase': Phase,
        'Notes': Notes,
        'TransferAmount': TransferAmount,
        'AccountNumber': AccountNumber,
        'Deleted': Deleted,
        'ModifiedBy': ModifiedBy,
        'Flagged': Flagged,
        'TransactionId': TransactionId,
        'FaceValue': FaceValue,
        'HasChange': HasChange,
        'HasConversation': HasConversation,
        'HasAgentMsg': HasAgentMsg,
        'HasAdminMsg': HasAdminMsg,
        'Attachment': JsonConverters.toJson(Attachment,'List<Attachment>',context!),
        'Reminder': JsonConverters.toJson(Reminder,'List<Reminder>',context!),
        'Agents': Agents,
        'HasOCR': HasOCR,
        'PolicyAssociateId': PolicyAssociateId,
        'HasRequiredDocuments': HasRequiredDocuments,
        'Phone': Phone,
        'EmailAddress': EmailAddress,
        'ApprovedDate': ApprovedDate,
        'ApprovedBy': ApprovedBy
    };

    getTypeName() => "SmartsheetsLife";
    TypeContext? context = _ctx;
}

class SmartsheetsFlow implements IConvertible
{
    int? ID;
    String? FirstName;
    String? LastName;
    String? PolicyNumber;
    String? PolicyType;
    String? AppDate;
    String? AgentName;
    int? AgentID;
    String? SRAStartDate;
    String? Phase;
    String? ModalPremium;
    String? Frequency;
    String? AnnualPremium;
    String? District;
    String? SS;
    String? Carrier;
    String? Notes;
    String? TPA;
    bool? Flagged;
    bool? Deleted;
    String? ModifiedBy;
    String? TransactionId;
    bool? HasChange;
    bool? HasConversation;
    bool? HasAgentMsg;
    bool? HasAdminMsg;
    List<Attachment>? Attachment = [];
    List<Reminder>? Reminder = [];
    String? Agents;
    bool? HasOCR;
    String? PolicyAssociateId;
    bool? HasRequiredDocuments;
    String? Phone;
    String? EmailAddress;
    String? ApprovedDate;
    String? ApprovedBy;

    SmartsheetsFlow({this.ID,this.FirstName,this.LastName,this.PolicyNumber,this.PolicyType,this.AppDate,this.AgentName,this.AgentID,this.SRAStartDate,this.Phase,this.ModalPremium,this.Frequency,this.AnnualPremium,this.District,this.SS,this.Carrier,this.Notes,this.TPA,this.Flagged,this.Deleted,this.ModifiedBy,this.TransactionId,this.HasChange,this.HasConversation,this.HasAgentMsg,this.HasAdminMsg,this.Attachment,this.Reminder,this.Agents,this.HasOCR,this.PolicyAssociateId,this.HasRequiredDocuments,this.Phone,this.EmailAddress,this.ApprovedDate,this.ApprovedBy});
    SmartsheetsFlow.fromJson(Map<String, dynamic> json) { fromMap(json); }

    fromMap(Map<String, dynamic> json) {
        ID = json['ID'];
        FirstName = json['FirstName'];
        LastName = json['LastName'];
        PolicyNumber = json['PolicyNumber'];
        PolicyType = json['PolicyType'];
        AppDate = json['AppDate'];
        AgentName = json['AgentName'];
        AgentID = json['AgentID'];
        SRAStartDate = json['SRAStartDate'];
        Phase = json['Phase'];
        ModalPremium = json['ModalPremium'];
        Frequency = json['Frequency'];
        AnnualPremium = json['AnnualPremium'];
        District = json['District'];
        SS = json['SS'];
        Carrier = json['Carrier'];
        Notes = json['Notes'];
        TPA = json['TPA'];
        Flagged = json['Flagged'];
        Deleted = json['Deleted'];
        ModifiedBy = json['ModifiedBy'];
        TransactionId = json['TransactionId'];
        HasChange = json['HasChange'];
        HasConversation = json['HasConversation'];
        HasAgentMsg = json['HasAgentMsg'];
        HasAdminMsg = json['HasAdminMsg'];
        Attachment = JsonConverters.fromJson(json['Attachment'],'List<Attachment>',context!);
        Reminder = JsonConverters.fromJson(json['Reminder'],'List<Reminder>',context!);
        Agents = json['Agents'];
        HasOCR = json['HasOCR'];
        PolicyAssociateId = json['PolicyAssociateId'];
        HasRequiredDocuments = json['HasRequiredDocuments'];
        Phone = json['Phone'];
        EmailAddress = json['EmailAddress'];
        ApprovedDate = json['ApprovedDate'];
        ApprovedBy = json['ApprovedBy'];
        return this;
    }

    Map<String, dynamic> toJson() => {
        'ID': ID,
        'FirstName': FirstName,
        'LastName': LastName,
        'PolicyNumber': PolicyNumber,
        'PolicyType': PolicyType,
        'AppDate': AppDate,
        'AgentName': AgentName,
        'AgentID': AgentID,
        'SRAStartDate': SRAStartDate,
        'Phase': Phase,
        'ModalPremium': ModalPremium,
        'Frequency': Frequency,
        'AnnualPremium': AnnualPremium,
        'District': District,
        'SS': SS,
        'Carrier': Carrier,
        'Notes': Notes,
        'TPA': TPA,
        'Flagged': Flagged,
        'Deleted': Deleted,
        'ModifiedBy': ModifiedBy,
        'TransactionId': TransactionId,
        'HasChange': HasChange,
        'HasConversation': HasConversation,
        'HasAgentMsg': HasAgentMsg,
        'HasAdminMsg': HasAdminMsg,
        'Attachment': JsonConverters.toJson(Attachment,'List<Attachment>',context!),
        'Reminder': JsonConverters.toJson(Reminder,'List<Reminder>',context!),
        'Agents': Agents,
        'HasOCR': HasOCR,
        'PolicyAssociateId': PolicyAssociateId,
        'HasRequiredDocuments': HasRequiredDocuments,
        'Phone': Phone,
        'EmailAddress': EmailAddress,
        'ApprovedDate': ApprovedDate,
        'ApprovedBy': ApprovedBy
    };

    getTypeName() => "SmartsheetsFlow";
    TypeContext? context = _ctx;
}

class SmartsheetsTransfer implements IConvertible
{
    int? ID;
    bool? Flagged;
    String? Phase;
    String? FirstName;
    String? LastName;
    String? PolicyNumber;
    String? PolicyType;
    String? AppDate;
    String? AgentName;
    int? AgentID;
    String? RegionalOffice;
    String? TransferAmount;
    String? TransferringCompany;
    String? AccountNumber;
    String? SS;
    String? Notes;
    bool? Deleted;
    String? ModifiedBy;
    String? TransactionId;
    bool? HasChange;
    bool? HasConversation;
    bool? HasAgentMsg;
    bool? HasAdminMsg;
    List<Attachment>? Attachment = [];
    List<Reminder>? Reminder = [];
    String? Agents;
    bool? HasOCR;
    String? PolicyAssociateId;
    bool? HasRequiredDocuments;
    String? Phone;
    String? EmailAddress;
    String? ApprovedDate;
    String? ApprovedBy;

    SmartsheetsTransfer({this.ID,this.Flagged,this.Phase,this.FirstName,this.LastName,this.PolicyNumber,this.PolicyType,this.AppDate,this.AgentName,this.AgentID,this.RegionalOffice,this.TransferAmount,this.TransferringCompany,this.AccountNumber,this.SS,this.Notes,this.Deleted,this.ModifiedBy,this.TransactionId,this.HasChange,this.HasConversation,this.HasAgentMsg,this.HasAdminMsg,this.Attachment,this.Reminder,this.Agents,this.HasOCR,this.PolicyAssociateId,this.HasRequiredDocuments,this.Phone,this.EmailAddress,this.ApprovedDate,this.ApprovedBy});
    SmartsheetsTransfer.fromJson(Map<String, dynamic> json) { fromMap(json); }

    fromMap(Map<String, dynamic> json) {
        ID = json['ID'];
        Flagged = json['Flagged'];
        Phase = json['Phase'];
        FirstName = json['FirstName'];
        LastName = json['LastName'];
        PolicyNumber = json['PolicyNumber'];
        PolicyType = json['PolicyType'];
        AppDate = json['AppDate'];
        AgentName = json['AgentName'];
        AgentID = json['AgentID'];
        RegionalOffice = json['RegionalOffice'];
        TransferAmount = json['TransferAmount'];
        TransferringCompany = json['TransferringCompany'];
        AccountNumber = json['AccountNumber'];
        SS = json['SS'];
        Notes = json['Notes'];
        Deleted = json['Deleted'];
        ModifiedBy = json['ModifiedBy'];
        TransactionId = json['TransactionId'];
        HasChange = json['HasChange'];
        HasConversation = json['HasConversation'];
        HasAgentMsg = json['HasAgentMsg'];
        HasAdminMsg = json['HasAdminMsg'];
        Attachment = JsonConverters.fromJson(json['Attachment'],'List<Attachment>',context!);
        Reminder = JsonConverters.fromJson(json['Reminder'],'List<Reminder>',context!);
        Agents = json['Agents'];
        HasOCR = json['HasOCR'];
        PolicyAssociateId = json['PolicyAssociateId'];
        HasRequiredDocuments = json['HasRequiredDocuments'];
        Phone = json['Phone'];
        EmailAddress = json['EmailAddress'];
        ApprovedDate = json['ApprovedDate'];
        ApprovedBy = json['ApprovedBy'];
        return this;
    }

    Map<String, dynamic> toJson() => {
        'ID': ID,
        'Flagged': Flagged,
        'Phase': Phase,
        'FirstName': FirstName,
        'LastName': LastName,
        'PolicyNumber': PolicyNumber,
        'PolicyType': PolicyType,
        'AppDate': AppDate,
        'AgentName': AgentName,
        'AgentID': AgentID,
        'RegionalOffice': RegionalOffice,
        'TransferAmount': TransferAmount,
        'TransferringCompany': TransferringCompany,
        'AccountNumber': AccountNumber,
        'SS': SS,
        'Notes': Notes,
        'Deleted': Deleted,
        'ModifiedBy': ModifiedBy,
        'TransactionId': TransactionId,
        'HasChange': HasChange,
        'HasConversation': HasConversation,
        'HasAgentMsg': HasAgentMsg,
        'HasAdminMsg': HasAdminMsg,
        'Attachment': JsonConverters.toJson(Attachment,'List<Attachment>',context!),
        'Reminder': JsonConverters.toJson(Reminder,'List<Reminder>',context!),
        'Agents': Agents,
        'HasOCR': HasOCR,
        'PolicyAssociateId': PolicyAssociateId,
        'HasRequiredDocuments': HasRequiredDocuments,
        'Phone': Phone,
        'EmailAddress': EmailAddress,
        'ApprovedDate': ApprovedDate,
        'ApprovedBy': ApprovedBy
    };

    getTypeName() => "SmartsheetsTransfer";
    TypeContext? context = _ctx;
}

class SmartsheetsIssuedClosed implements IConvertible
{
    String? Type;
    int? ID;
    bool? Flagged;
    String? Phase;
    String? FirstName;
    String? LastName;
    String? PolicyNumber;
    String? AgentName;
    String? Notes;
    bool? Deleted;
    String? ModifiedBy;
    bool? HasChange;
    bool? HasConversation;
    bool? HasAgentMsg;
    bool? HasAdminMsg;
    List<Attachment>? Attachment = [];
    List<Reminder>? Reminder = [];
    bool? HasOCR;
    String? AppDate;
    String? TransactionId;

    SmartsheetsIssuedClosed({this.Type,this.ID,this.Flagged,this.Phase,this.FirstName,this.LastName,this.PolicyNumber,this.AgentName,this.Notes,this.Deleted,this.ModifiedBy,this.HasChange,this.HasConversation,this.HasAgentMsg,this.HasAdminMsg,this.Attachment,this.Reminder,this.HasOCR,this.AppDate,this.TransactionId});
    SmartsheetsIssuedClosed.fromJson(Map<String, dynamic> json) { fromMap(json); }

    fromMap(Map<String, dynamic> json) {
        Type = json['Type'];
        ID = json['ID'];
        Flagged = json['Flagged'];
        Phase = json['Phase'];
        FirstName = json['FirstName'];
        LastName = json['LastName'];
        PolicyNumber = json['PolicyNumber'];
        AgentName = json['AgentName'];
        Notes = json['Notes'];
        Deleted = json['Deleted'];
        ModifiedBy = json['ModifiedBy'];
        HasChange = json['HasChange'];
        HasConversation = json['HasConversation'];
        HasAgentMsg = json['HasAgentMsg'];
        HasAdminMsg = json['HasAdminMsg'];
        Attachment = JsonConverters.fromJson(json['Attachment'],'List<Attachment>',context!);
        Reminder = JsonConverters.fromJson(json['Reminder'],'List<Reminder>',context!);
        HasOCR = json['HasOCR'];
        AppDate = json['AppDate'];
        TransactionId = json['TransactionId'];
        return this;
    }

    Map<String, dynamic> toJson() => {
        'Type': Type,
        'ID': ID,
        'Flagged': Flagged,
        'Phase': Phase,
        'FirstName': FirstName,
        'LastName': LastName,
        'PolicyNumber': PolicyNumber,
        'AgentName': AgentName,
        'Notes': Notes,
        'Deleted': Deleted,
        'ModifiedBy': ModifiedBy,
        'HasChange': HasChange,
        'HasConversation': HasConversation,
        'HasAgentMsg': HasAgentMsg,
        'HasAdminMsg': HasAdminMsg,
        'Attachment': JsonConverters.toJson(Attachment,'List<Attachment>',context!),
        'Reminder': JsonConverters.toJson(Reminder,'List<Reminder>',context!),
        'HasOCR': HasOCR,
        'AppDate': AppDate,
        'TransactionId': TransactionId
    };

    getTypeName() => "SmartsheetsIssuedClosed";
    TypeContext? context = _ctx;
}

class SmartsheetsResponse implements IConvertible
{
    ResponseStatus? ResponseStatus;
    List<SmartsheetsLife>? Life = [];
    List<SmartsheetsFlow>? Flow = [];
    List<SmartsheetsTransfer>? Transfer = [];
    List<SmartsheetsIssuedClosed>? IssuedClosed = [];

    SmartsheetsResponse({this.ResponseStatus,this.Life,this.Flow,this.Transfer,this.IssuedClosed});
    SmartsheetsResponse.fromJson(Map<String, dynamic> json) { fromMap(json); }

    fromMap(Map<String, dynamic> json) {
        ResponseStatus = JsonConverters.fromJson(json['ResponseStatus'],'ResponseStatus',context!);
        Life = JsonConverters.fromJson(json['Life'],'List<SmartsheetsLife>',context!);
        Flow = JsonConverters.fromJson(json['Flow'],'List<SmartsheetsFlow>',context!);
        Transfer = JsonConverters.fromJson(json['Transfer'],'List<SmartsheetsTransfer>',context!);
        IssuedClosed = JsonConverters.fromJson(json['IssuedClosed'],'List<SmartsheetsIssuedClosed>',context!);
        return this;
    }

    Map<String, dynamic> toJson() => {
        'ResponseStatus': JsonConverters.toJson(ResponseStatus,'ResponseStatus',context!),
        'Life': JsonConverters.toJson(Life,'List<SmartsheetsLife>',context!),
        'Flow': JsonConverters.toJson(Flow,'List<SmartsheetsFlow>',context!),
        'Transfer': JsonConverters.toJson(Transfer,'List<SmartsheetsTransfer>',context!),
        'IssuedClosed': JsonConverters.toJson(IssuedClosed,'List<SmartsheetsIssuedClosed>',context!)
    };

    getTypeName() => "SmartsheetsResponse";
    TypeContext? context = _ctx;
}

class SmartsheetsRequest implements IConvertible
{
    int? AgentID;
    String? SheetType;

    SmartsheetsRequest({this.AgentID,this.SheetType});
    SmartsheetsRequest.fromJson(Map<String, dynamic> json) { fromMap(json); }

    fromMap(Map<String, dynamic> json) {
        AgentID = json['AgentID'];
        SheetType = json['SheetType'];
        return this;
    }

    Map<String, dynamic> toJson() => {
        'AgentID': AgentID,
        'SheetType': SheetType
    };

    getTypeName() => "SmartsheetsRequest";
    TypeContext? context = _ctx;
}

TypeContext _ctx = TypeContext(library: 'api.dev.dynamics.trendsic.com', types: <String, TypeInfo> {
    'Attachment': TypeInfo(TypeOf.Class, create:() => Attachment()),
    'Uint8List': TypeInfo(TypeOf.Class, create:() => Uint8List(0)),
    'Reminder': TypeInfo(TypeOf.Class, create:() => Reminder()),
    'SmartsheetsLife': TypeInfo(TypeOf.Class, create:() => SmartsheetsLife()),
    'List<Attachment>': TypeInfo(TypeOf.Class, create:() => <Attachment>[]),
    'List<Reminder>': TypeInfo(TypeOf.Class, create:() => <Reminder>[]),
    'SmartsheetsFlow': TypeInfo(TypeOf.Class, create:() => SmartsheetsFlow()),
    'SmartsheetsTransfer': TypeInfo(TypeOf.Class, create:() => SmartsheetsTransfer()),
    'SmartsheetsIssuedClosed': TypeInfo(TypeOf.Class, create:() => SmartsheetsIssuedClosed()),
    'SmartsheetsResponse': TypeInfo(TypeOf.Class, create:() => SmartsheetsResponse()),
    'List<SmartsheetsLife>': TypeInfo(TypeOf.Class, create:() => <SmartsheetsLife>[]),
    'List<SmartsheetsFlow>': TypeInfo(TypeOf.Class, create:() => <SmartsheetsFlow>[]),
    'List<SmartsheetsTransfer>': TypeInfo(TypeOf.Class, create:() => <SmartsheetsTransfer>[]),
    'List<SmartsheetsIssuedClosed>': TypeInfo(TypeOf.Class, create:() => <SmartsheetsIssuedClosed>[]),
    'SmartsheetsRequest': TypeInfo(TypeOf.Class, create:() => SmartsheetsRequest()),
});

Dart SmartsheetsRequest DTOs

To override the Content-type in your clients, use the HTTP Accept Header, append the .csv suffix or ?format=csv

HTTP + CSV

The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.

GET /v1/Smartsheets/{AgentID} HTTP/1.1 
Host: api.dev.dynamics.trendsic.com 
Accept: text/csv
HTTP/1.1 200 OK
Content-Type: text/csv
Content-Length: length

{"ResponseStatus":{"ErrorCode":"String","Message":"String","StackTrace":"String","Errors":[{"ErrorCode":"String","FieldName":"String","Message":"String","Meta":{"String":"String"}}],"Meta":{"String":"String"}},"Life":[{"ID":0,"FirstName":"String","LastName":"String","PolicyNumber":"String","PolicyType":"String","CPT":"String","AppDate":"String","AgentName":"String","AgentID":0,"Phase":"String","Notes":"String","TransferAmount":"String","AccountNumber":"String","Deleted":false,"ModifiedBy":"String","Flagged":false,"TransactionId":"String","FaceValue":"String","HasChange":false,"HasConversation":false,"HasAgentMsg":false,"HasAdminMsg":false,"Attachment":[{"AttachmentId":"00000000000000000000000000000000","TableName":"String","FieldName":"String","RecordId":0,"AttachmentName":"String","MimeType":"String","AttachmentData":"AA==","FileSizeInKB":0,"CreatedDate":"0001-01-01T00:00:00.0000000","CreatedBy":"String","NeedsOCR":false,"OCRDate":"0001-01-01T00:00:00.0000000","IsSecurities":false,"AWSKey":"String","PresignedUrl":"String"}],"Reminder":[{"ReminderId":"00000000000000000000000000000000","TableName":"String","FieldName":"String","RecordId":0,"ReminderDate":"0001-01-01T00:00:00.0000000","ReminderNote":"String","CreatedDate":"0001-01-01T00:00:00.0000000","CreatedBy":"String","CompletedDate":"0001-01-01T00:00:00.0000000"}],"Agents":"String","HasOCR":false,"PolicyAssociateId":"00000000000000000000000000000000","HasRequiredDocuments":false,"Phone":"String","EmailAddress":"String","ApprovedDate":"String","ApprovedBy":"String"}],"Flow":[{"ID":0,"FirstName":"String","LastName":"String","PolicyNumber":"String","PolicyType":"String","AppDate":"String","AgentName":"String","AgentID":0,"SRAStartDate":"String","Phase":"String","ModalPremium":"String","Frequency":"String","AnnualPremium":"String","District":"String","SS":"String","Carrier":"String","Notes":"String","TPA":"String","Flagged":false,"Deleted":false,"ModifiedBy":"String","TransactionId":"String","HasChange":false,"HasConversation":false,"HasAgentMsg":false,"HasAdminMsg":false,"Attachment":[{"AttachmentId":"00000000000000000000000000000000","TableName":"String","FieldName":"String","RecordId":0,"AttachmentName":"String","MimeType":"String","AttachmentData":"AA==","FileSizeInKB":0,"CreatedDate":"0001-01-01T00:00:00.0000000","CreatedBy":"String","NeedsOCR":false,"OCRDate":"0001-01-01T00:00:00.0000000","IsSecurities":false,"AWSKey":"String","PresignedUrl":"String"}],"Reminder":[{"ReminderId":"00000000000000000000000000000000","TableName":"String","FieldName":"String","RecordId":0,"ReminderDate":"0001-01-01T00:00:00.0000000","ReminderNote":"String","CreatedDate":"0001-01-01T00:00:00.0000000","CreatedBy":"String","CompletedDate":"0001-01-01T00:00:00.0000000"}],"Agents":"String","HasOCR":false,"PolicyAssociateId":"00000000000000000000000000000000","HasRequiredDocuments":false,"Phone":"String","EmailAddress":"String","ApprovedDate":"String","ApprovedBy":"String"}],"Transfer":[{"ID":0,"Flagged":false,"Phase":"String","FirstName":"String","LastName":"String","PolicyNumber":"String","PolicyType":"String","AppDate":"String","AgentName":"String","AgentID":0,"RegionalOffice":"String","TransferAmount":"String","TransferringCompany":"String","AccountNumber":"String","SS":"String","Notes":"String","Deleted":false,"ModifiedBy":"String","TransactionId":"String","HasChange":false,"HasConversation":false,"HasAgentMsg":false,"HasAdminMsg":false,"Attachment":[{"AttachmentId":"00000000000000000000000000000000","TableName":"String","FieldName":"String","RecordId":0,"AttachmentName":"String","MimeType":"String","AttachmentData":"AA==","FileSizeInKB":0,"CreatedDate":"0001-01-01T00:00:00.0000000","CreatedBy":"String","NeedsOCR":false,"OCRDate":"0001-01-01T00:00:00.0000000","IsSecurities":false,"AWSKey":"String","PresignedUrl":"String"}],"Reminder":[{"ReminderId":"00000000000000000000000000000000","TableName":"String","FieldName":"String","RecordId":0,"ReminderDate":"0001-01-01T00:00:00.0000000","ReminderNote":"String","CreatedDate":"0001-01-01T00:00:00.0000000","CreatedBy":"String","CompletedDate":"0001-01-01T00:00:00.0000000"}],"Agents":"String","HasOCR":false,"PolicyAssociateId":"00000000000000000000000000000000","HasRequiredDocuments":false,"Phone":"String","EmailAddress":"String","ApprovedDate":"String","ApprovedBy":"String"}],"IssuedClosed":[{"Type":"String","ID":0,"Flagged":false,"Phase":"String","FirstName":"String","LastName":"String","PolicyNumber":"String","AgentName":"String","Notes":"String","Deleted":false,"ModifiedBy":"String","HasChange":false,"HasConversation":false,"HasAgentMsg":false,"HasAdminMsg":false,"Attachment":[{"AttachmentId":"00000000000000000000000000000000","TableName":"String","FieldName":"String","RecordId":0,"AttachmentName":"String","MimeType":"String","AttachmentData":"AA==","FileSizeInKB":0,"CreatedDate":"0001-01-01T00:00:00.0000000","CreatedBy":"String","NeedsOCR":false,"OCRDate":"0001-01-01T00:00:00.0000000","IsSecurities":false,"AWSKey":"String","PresignedUrl":"String"}],"Reminder":[{"ReminderId":"00000000000000000000000000000000","TableName":"String","FieldName":"String","RecordId":0,"ReminderDate":"0001-01-01T00:00:00.0000000","ReminderNote":"String","CreatedDate":"0001-01-01T00:00:00.0000000","CreatedBy":"String","CompletedDate":"0001-01-01T00:00:00.0000000"}],"HasOCR":false,"AppDate":"String","TransactionId":"String"}]}