@override Object toJson() { return { if (memoryBankConfig != null) 'memoryBankConfig': memoryBankConfig!.toJson(), }; }