toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() {
  final json = <String, dynamic>{};
  json[r'message'] = this.message;
  json[r'long_message'] = this.longMessage;
  json[r'code'] = this.code;
  if (this.meta != null) {
    json[r'meta'] = this.meta;
  } else {
    json[r'meta'] = null;
  }
  if (this.clerkTraceId != null) {
    json[r'clerk_trace_id'] = this.clerkTraceId;
  } else {
    json[r'clerk_trace_id'] = null;
  }
  return json;
}