toJson method

Map<String, dynamic> toJson()

Implementation

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