| GET | /licenses_transactions |
|---|
import 'package:servicestack/servicestack.dart';
// @DataContract
class LicensesTransactionsLookup implements IConvertible
{
// @DataMember(Order=2)
int? appUserId;
// @DataMember(Order=3)
int? licensesId;
// @DataMember(Order=4)
double? paidAmount;
// @DataMember(Order=5)
DateTime? paidDate;
// @DataMember(Order=6)
DateTime? fromDate;
// @DataMember(Order=7)
DateTime? toDate;
// @DataMember(Order=8)
String? reference;
LicensesTransactionsLookup({this.appUserId,this.licensesId,this.paidAmount,this.paidDate,this.fromDate,this.toDate,this.reference});
LicensesTransactionsLookup.fromJson(Map<String, dynamic> json) { fromMap(json); }
fromMap(Map<String, dynamic> json) {
appUserId = json['appUserId'];
licensesId = json['licensesId'];
paidAmount = JsonConverters.toDouble(json['paidAmount']);
paidDate = JsonConverters.fromJson(json['paidDate'],'DateTime',context!);
fromDate = JsonConverters.fromJson(json['fromDate'],'DateTime',context!);
toDate = JsonConverters.fromJson(json['toDate'],'DateTime',context!);
reference = json['reference'];
return this;
}
Map<String, dynamic> toJson() => {
'appUserId': appUserId,
'licensesId': licensesId,
'paidAmount': paidAmount,
'paidDate': JsonConverters.toJson(paidDate,'DateTime',context!),
'fromDate': JsonConverters.toJson(fromDate,'DateTime',context!),
'toDate': JsonConverters.toJson(toDate,'DateTime',context!),
'reference': reference
};
getTypeName() => "LicensesTransactionsLookup";
TypeContext? context = _ctx;
}
TypeContext _ctx = TypeContext(library: 'sfgboxapi.dev.scadsoftware.com', types: <String, TypeInfo> {
'LicensesTransactionsLookup': TypeInfo(TypeOf.Class, create:() => LicensesTransactionsLookup()),
});
Dart LicensesTransactionsLookup DTOs
To override the Content-type in your clients, use the HTTP Accept Header, append the .csv suffix or ?format=csv
The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.
GET /licenses_transactions HTTP/1.1 Host: sfgboxapi.dev.scadsoftware.com Accept: text/csv
HTTP/1.1 200 OK
Content-Type: text/csv
Content-Length: length
{Unable to show example output for type 'IEnumerable`1' using the custom 'csv' filter}Cannot dynamically create an instance of type 'System.Collections.Generic.IEnumerable`1[sfgboxapi.ServiceModel.LicensesTransactionsLookupResponse]'. Reason: Cannot create an instance of an interface.