toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() {
  final json = <String, dynamic>{};
  if (label != null) {
    json[r'label'] = label;
  }
  if (occurence != null) {
    json[r'occurence'] = occurence;
  }
  return json;
}