toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() {
  final thingGroupIndexingMode = this.thingGroupIndexingMode;
  final customFields = this.customFields;
  final managedFields = this.managedFields;
  return {
    'thingGroupIndexingMode': thingGroupIndexingMode.toValue(),
    if (customFields != null) 'customFields': customFields,
    if (managedFields != null) 'managedFields': managedFields,
  };
}