toJson method
Implementation
Map<String, dynamic> toJson() {
final json = <String, dynamic>{};
json[r'id'] = this.id;
if (this.type != null) {
json[r'type'] = this.type;
} else {
json[r'type'] = null;
}
if (this.account != null) {
json[r'account'] = this.account;
} else {
json[r'account'] = null;
}
json[r'code'] = this.code;
json[r'quantity'] = this.quantity;
json[r'price'] = this.price;
json[r'created_at'] = this.createdAt.toUtc().toIso8601String();
return json;
}