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