Unico3.Link.API

<back to all web services

ImpostaValidazione

Interventi
The following routes are available for this service:
PUT/assistenza/interventi/validazioni
PUT/assistenza/interventi/{Id}/validazioni/{IdStepValidazione}
import 'package:servicestack/servicestack.dart';

class ImpostaValidazione implements IConvertible
{
    int? Id;
    int? IdStepValidazione;
    bool? IsEseguita;
    String? Note;

    ImpostaValidazione({this.Id,this.IdStepValidazione,this.IsEseguita,this.Note});
    ImpostaValidazione.fromJson(Map<String, dynamic> json) { fromMap(json); }

    fromMap(Map<String, dynamic> json) {
        Id = json['Id'];
        IdStepValidazione = json['IdStepValidazione'];
        IsEseguita = json['IsEseguita'];
        Note = json['Note'];
        return this;
    }

    Map<String, dynamic> toJson() => {
        'Id': Id,
        'IdStepValidazione': IdStepValidazione,
        'IsEseguita': IsEseguita,
        'Note': Note
    };

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

TypeContext _ctx = TypeContext(library: 'link.dc8.unico3.cloud', types: <String, TypeInfo> {
    'ImpostaValidazione': TypeInfo(TypeOf.Class, create:() => ImpostaValidazione()),
});

Dart ImpostaValidazione 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.

PUT /assistenza/interventi/validazioni HTTP/1.1 
Host: unico3.link.api 
Accept: application/json
Content-Type: application/json
Content-Length: length

{"Id":0,"IdStepValidazione":0,"IsEseguita":false,"Note":"String"}