@override Object toJson() => { 'dataKey': ?dataKey?.toJson(), if (features.isNotDefault) 'features': [for (final i in features) i.toJson()], };