Map<String, Object?> toJson() { var values = this.values; final json = <String, Object?>{}; json[r'values'] = values.map((i) => i.toJson()).toList(); return json; }