MyApp

<back to all web services

DeleteGameItem

Game
import 'package:servicestack/servicestack.dart';
import 'dart:typed_data';

class DeleteGameItem implements IDeleteDb<GameItem>, IConvertible
{
    // @Validate(Validator="NotEmpty")
    String? name;

    DeleteGameItem({this.name});
    DeleteGameItem.fromJson(Map<String, dynamic> json) { fromMap(json); }

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

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

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

TypeContext _ctx = TypeContext(library: 'blazor_gallery.servicestack.net', types: <String, TypeInfo> {
    'DeleteGameItem': TypeInfo(TypeOf.Class, create:() => DeleteGameItem()),
});

Dart DeleteGameItem DTOs

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

HTTP + XML

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

POST /xml/oneway/DeleteGameItem HTTP/1.1 
Host: blazor-gallery.servicestack.net 
Accept: application/xml
Content-Type: application/xml
Content-Length: length

<DeleteGameItem xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/MyApp.ServiceModel">
  <Name>String</Name>
</DeleteGameItem>