toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() {
  final json = <String, dynamic>{};
  if (this.id != null) {
    json[r'id'] = this.id;
  } else {
    json[r'id'] = null;
  }
    json[r'title'] = this.title;
    json[r'period'] = this.period;
    json[r'description'] = this.description;
    json[r'price'] = this.price;
    json[r'options'] = this.options;
  return json;
}