DigiOffice API Services Services

<back to all web services

OutlookAddinOptions

Requires Authentication
import 'package:servicestack/servicestack.dart';
import 'dart:typed_data';

class ConditionalFormatting implements IConvertible
{
    String? Color;
    bool? Bold;
    bool? Italic;
    bool? StrikeThrough;
    bool? Underline;

    ConditionalFormatting({this.Color,this.Bold,this.Italic,this.StrikeThrough,this.Underline});
    ConditionalFormatting.fromJson(Map<String, dynamic> json) { fromMap(json); }

    fromMap(Map<String, dynamic> json) {
        Color = json['Color'];
        Bold = json['Bold'];
        Italic = json['Italic'];
        StrikeThrough = json['StrikeThrough'];
        Underline = json['Underline'];
        return this;
    }

    Map<String, dynamic> toJson() => {
        'Color': Color,
        'Bold': Bold,
        'Italic': Italic,
        'StrikeThrough': StrikeThrough,
        'Underline': Underline
    };

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

class OutlookAddinOptions implements IConvertible
{
    ConditionalFormatting? RegisteredMail;
    ConditionalFormatting? ToRegisterMail;
    ConditionalFormatting? ErrorMail;
    bool? ForceerOpmaak;

    OutlookAddinOptions({this.RegisteredMail,this.ToRegisterMail,this.ErrorMail,this.ForceerOpmaak});
    OutlookAddinOptions.fromJson(Map<String, dynamic> json) { fromMap(json); }

    fromMap(Map<String, dynamic> json) {
        RegisteredMail = JsonConverters.fromJson(json['RegisteredMail'],'ConditionalFormatting',context!);
        ToRegisterMail = JsonConverters.fromJson(json['ToRegisterMail'],'ConditionalFormatting',context!);
        ErrorMail = JsonConverters.fromJson(json['ErrorMail'],'ConditionalFormatting',context!);
        ForceerOpmaak = json['ForceerOpmaak'];
        return this;
    }

    Map<String, dynamic> toJson() => {
        'RegisteredMail': JsonConverters.toJson(RegisteredMail,'ConditionalFormatting',context!),
        'ToRegisterMail': JsonConverters.toJson(ToRegisterMail,'ConditionalFormatting',context!),
        'ErrorMail': JsonConverters.toJson(ErrorMail,'ConditionalFormatting',context!),
        'ForceerOpmaak': ForceerOpmaak
    };

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

TypeContext _ctx = TypeContext(library: 'test_do_services.klokgroep.nl', types: <String, TypeInfo> {
    'ConditionalFormatting': TypeInfo(TypeOf.Class, create:() => ConditionalFormatting()),
    'OutlookAddinOptions': TypeInfo(TypeOf.Class, create:() => OutlookAddinOptions()),
});

Dart OutlookAddinOptions DTOs

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

HTTP + OTHER

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

POST /jsonl/oneway/OutlookAddinOptions HTTP/1.1 
Host: test-do-services.klokgroep.nl 
Accept: text/jsonl
Content-Type: text/jsonl
Content-Length: length

{"RegisteredMail":{"Color":"String","Bold":false,"Italic":false,"StrikeThrough":false,"Underline":false},"ToRegisterMail":{"Color":"String","Bold":false,"Italic":false,"StrikeThrough":false,"Underline":false},"ErrorMail":{"Color":"String","Bold":false,"Italic":false,"StrikeThrough":false,"Underline":false},"ForceerOpmaak":false}