toJson method

Map<String, dynamic> toJson()

Implementation

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