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