toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() => {
      "price": price == null ? null : price,
      "duration": duration == null ? null : duration,
    };