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