toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() {
  final Map<String, dynamic> data = {};
  data['id'] = id;
  data['product_id'] = productId;
  data['name'] = name;
  data['position'] = position;
  data['values'] = values;
  return data;
}