Convert config to json
@override Map<String, dynamic> toJSON() { return <String, dynamic>{ 'slotId': slotId, 'loadingType': loadingType.index, }; }