toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() {
  final json = <String, dynamic>{};
    json[r'tier'] = this.tier;
    json[r'display_name'] = this.displayName;
    json[r'subscription_status'] = this.subscriptionStatus;
  if (this.trialEndsAt != null) {
    json[r'trial_ends_at'] = this.trialEndsAt!.toUtc().toIso8601String();
  } else {
    json[r'trial_ends_at'] = null;
  }
  return json;
}