toJson method

Map<String, dynamic> toJson()

Implementation

core.Map<core.String, core.dynamic> toJson() {
  final nutrient = this.nutrient;
  final quantity = this.quantity;
  return {'nutrient': ?nutrient, 'quantity': ?quantity};
}