toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() {
  final Map<String, dynamic> data =  Map<String, dynamic>();
  if (this.flavor != null) {
    data['flavor'] = this.flavor!.toJson();
  }
  data['potency'] = this.potency;
  return data;
}