toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() {
  final _json = <String, dynamic>{};
  if (id != null) {
    _json[r'id'] = id;
  }
  if (number != null) {
    _json[r'number'] = number;
  }
  if (createAt != null) {
    _json[r'create_at'] = createAt;
  }
  if (total != null) {
    _json[r'total'] = total;
  }
  if (tax != null) {
    _json[r'tax'] = tax;
  }
  if (status != null) {
    _json[r'status'] = status;
  }
  if (periodStart != null) {
    _json[r'period_start'] = periodStart;
  }
  if (periodEnd != null) {
    _json[r'period_end'] = periodEnd;
  }
  if (subscriptionId != null) {
    _json[r'subscription_id'] = subscriptionId;
  }
  _json[r'item'] = item;
  return _json;
}