toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() {
  final json = <String, dynamic>{};
    json[r'error'] = this.error;
  if (this.message != null) {
    json[r'message'] = this.message;
  } else {
    json[r'message'] = null;
  }
  if (this.retryAfter != null) {
    json[r'retry_after'] = this.retryAfter;
  } else {
    json[r'retry_after'] = null;
  }
  if (this.creditsRemaining != null) {
    json[r'credits_remaining'] = this.creditsRemaining;
  } else {
    json[r'credits_remaining'] = null;
  }
    json[r'request_id'] = this.requestId;
  return json;
}