@override Object toJson() => { if (memoryBankConfig case final memoryBankConfig?) 'memoryBankConfig': memoryBankConfig.toJson(), };