Map<String, dynamic> toJson() { final json = <String, dynamic>{}; if (this.reason != null) { json[r'reason'] = this.reason; } else { json[r'reason'] = null; } return json; }