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