toJson method
Implementation
core.Map<core.String, core.dynamic> toJson() => {
if (firstResource != null) 'firstResource': firstResource!,
if (lastResource != null) 'lastResource': lastResource!,
if (price != null) 'price': price!,
};