Blazor Diffusion

<back to all web services

DeleteOldCreatives

import 'package:servicestack/servicestack.dart';

// @DataContract
class StringsResponse implements IMeta, IConvertible
{
    // @DataMember(Order=1)
    List<String>? results;

    // @DataMember(Order=2)
    Map<String,String?>? meta;

    // @DataMember(Order=3)
    ResponseStatus? responseStatus;

    StringsResponse({this.results,this.meta,this.responseStatus});
    StringsResponse.fromJson(Map<String, dynamic> json) { fromMap(json); }

    fromMap(Map<String, dynamic> json) {
        results = JsonConverters.fromJson(json['results'],'List<String>',context!);
        meta = JsonConverters.toStringMap(json['meta']);
        responseStatus = JsonConverters.fromJson(json['responseStatus'],'ResponseStatus',context!);
        return this;
    }

    Map<String, dynamic> toJson() => {
        'results': JsonConverters.toJson(results,'List<String>',context!),
        'meta': meta,
        'responseStatus': JsonConverters.toJson(responseStatus,'ResponseStatus',context!)
    };

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

class DeleteOldCreatives implements IGet, IConvertible
{
    DeleteOldCreatives();
    DeleteOldCreatives.fromJson(Map<String, dynamic> json) : super();
    fromMap(Map<String, dynamic> json) {
        return this;
    }

    Map<String, dynamic> toJson() => {};
    getTypeName() => "DeleteOldCreatives";
    TypeContext? context = _ctx;
}

TypeContext _ctx = TypeContext(library: 'blazordiffusion.com', types: <String, TypeInfo> {
    'DeleteOldCreatives': TypeInfo(TypeOf.Class, create:() => DeleteOldCreatives()),
});

Dart DeleteOldCreatives DTOs

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

To embed the response in a jsonp callback, append ?callback=myCallback

HTTP + JSON

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

POST /json/reply/DeleteOldCreatives HTTP/1.1 
Host: blazordiffusion.com 
Accept: application/json
Content-Type: application/json
Content-Length: length

{}
HTTP/1.1 200 OK
Content-Type: application/json
Content-Length: length

{"results":["String"],"meta":{"String":"String"},"responseStatus":{"errorCode":"String","message":"String","stackTrace":"String","errors":[{"errorCode":"String","fieldName":"String","message":"String","meta":{"String":"String"}}],"meta":{"String":"String"}}}