toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() {
  final json = <String, dynamic>{};
    json[r'allowed'] = this.allowed;
  if (this.taskCount != null) {
    json[r'task_count'] = this.taskCount;
  } else {
    json[r'task_count'] = null;
  }
  if (this.dailyLimit != null) {
    json[r'daily_limit'] = this.dailyLimit;
  } else {
    json[r'daily_limit'] = null;
  }
  if (this.trialEndsAt != null) {
    json[r'trial_ends_at'] = this.trialEndsAt!.toUtc().toIso8601String();
  } else {
    json[r'trial_ends_at'] = null;
  }
  if (this.paid != null) {
    json[r'paid'] = this.paid;
  } else {
    json[r'paid'] = null;
  }
  return json;
}