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