toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() {
  final label = this.label;
  final normalized = this.normalized;
  final product = this.product;
  return {
    if (label != null) 'Label': label.toValue(),
    if (normalized != null) 'Normalized': normalized,
    if (product != null) 'Product': product,
  };
}