toJson method
Implementation
core.Map<core.String, core.dynamic> toJson() => {
if (fraction != null) 'fraction': fraction!,
if (fractionGroup != null) 'fractionGroup': fractionGroup!,
if (name != null) 'name': name!,
if (pinnable != null) 'pinnable': pinnable!,
if (serving != null) 'serving': serving!,
if (version != null) 'version': version!,
};