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