import 'package:servicestack/servicestack.dart';
import 'dart:typed_data';
class JsonDto implements IConvertible
{
JsonDto();
JsonDto.fromJson(Map<String, dynamic> json) : super();
fromMap(Map<String, dynamic> json) {
return this;
}
Map<String, dynamic> toJson() => {};
getTypeName() => "JsonDto";
TypeContext? context = _ctx;
}
class GetJsonTemplateInfos extends JsonDto implements IConvertible
{
GetJsonTemplateInfos();
GetJsonTemplateInfos.fromJson(Map<String, dynamic> json) : super.fromJson(json);
fromMap(Map<String, dynamic> json) {
super.fromMap(json);
return this;
}
Map<String, dynamic> toJson() => super.toJson();
getTypeName() => "GetJsonTemplateInfos";
TypeContext? context = _ctx;
}
class GetJsonTemplateInfosResponse extends JsonDto implements IConvertible
{
List<JsonTemplateInfo>? TemplateInfos;
GetJsonTemplateInfosResponse({this.TemplateInfos});
GetJsonTemplateInfosResponse.fromJson(Map<String, dynamic> json) { fromMap(json); }
fromMap(Map<String, dynamic> json) {
super.fromMap(json);
TemplateInfos = JsonConverters.fromJson(json['TemplateInfos'],'List<JsonTemplateInfo>',context!);
return this;
}
Map<String, dynamic> toJson() => super.toJson()..addAll({
'TemplateInfos': JsonConverters.toJson(TemplateInfos,'List<JsonTemplateInfo>',context!)
});
getTypeName() => "GetJsonTemplateInfosResponse";
TypeContext? context = _ctx;
}
class JsonTemplateInfo implements IConvertible
{
String? Guid;
DateTime? TemplateModificationDate;
DateTime? IconModificationDate;
JsonTemplateInfo({this.Guid,this.TemplateModificationDate,this.IconModificationDate});
JsonTemplateInfo.fromJson(Map<String, dynamic> json) { fromMap(json); }
fromMap(Map<String, dynamic> json) {
Guid = json['Guid'];
TemplateModificationDate = JsonConverters.fromJson(json['TemplateModificationDate'],'DateTime',context!);
IconModificationDate = JsonConverters.fromJson(json['IconModificationDate'],'DateTime',context!);
return this;
}
Map<String, dynamic> toJson() => {
'Guid': Guid,
'TemplateModificationDate': JsonConverters.toJson(TemplateModificationDate,'DateTime',context!),
'IconModificationDate': JsonConverters.toJson(IconModificationDate,'DateTime',context!)
};
getTypeName() => "JsonTemplateInfo";
TypeContext? context = _ctx;
}
TypeContext _ctx = TypeContext(library: 'buildmax.org', types: <String, TypeInfo> {
'JsonDto': TypeInfo(TypeOf.Class, create:() => JsonDto()),
'GetJsonTemplateInfos': TypeInfo(TypeOf.Class, create:() => GetJsonTemplateInfos()),
'GetJsonTemplateInfosResponse': TypeInfo(TypeOf.Class, create:() => GetJsonTemplateInfosResponse()),
'List<JsonTemplateInfo>': TypeInfo(TypeOf.Class, create:() => <JsonTemplateInfo>[]),
'JsonTemplateInfo': TypeInfo(TypeOf.Class, create:() => JsonTemplateInfo()),
});
Dart GetJsonTemplateInfos DTOs
To override the Content-type in your clients, use the HTTP Accept Header, append the .other suffix or ?format=other
The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.
POST /jsonl/reply/GetJsonTemplateInfos HTTP/1.1
Host: buildmax.org
Accept: text/jsonl
Content-Type: text/jsonl
Content-Length: length
{}
HTTP/1.1 200 OK
Content-Type: text/jsonl
Content-Length: length
{Unable to show example output for type 'GetJsonTemplateInfosResponse' using the custom 'other' filter}No parameterless constructor defined for this object.