toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() {
  final json = <String, dynamic>{};
  if (this.amount != null) {
    json[r'amount'] = this.amount;
  } else {
    json[r'amount'] = null;
  }
  if (this.productType != null) {
    json[r'productType'] = this.productType;
  } else {
    json[r'productType'] = null;
  }
  return json;
}