core.Map<core.String, core.dynamic> toJson() => { if (enableFencing != null) 'enableFencing': enableFencing!, if (item != null) 'item': item!, };