toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() {
  final json = <String, dynamic>{};
  if (this.currency != null) {
    json[r'currency'] = this.currency;
  } else {
    json[r'currency'] = null;
  }
    json[r'items'] = this.items;
  if (this.total != null) {
    json[r'total'] = this.total;
  } else {
    json[r'total'] = null;
  }
  if (this.expiresAt != null) {
    json[r'expiresAt'] = this.expiresAt!.toUtc().toIso8601String();
  } else {
    json[r'expiresAt'] = null;
  }
  return json;
}