toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() {
  final json = <String, dynamic>{};
  if (this.periodStart != null) {
    json[r'period_start'] = this.periodStart!.toUtc().toIso8601String();
  } else {
    json[r'period_start'] = null;
  }
  if (this.periodEnd != null) {
    json[r'period_end'] = this.periodEnd!.toUtc().toIso8601String();
  } else {
    json[r'period_end'] = null;
  }
  if (this.totalRequests != null) {
    json[r'total_requests'] = this.totalRequests;
  } else {
    json[r'total_requests'] = null;
  }
    json[r'products'] = this.products;
    json[r'subscriptions'] = this.subscriptions;
  return json;
}