Convert current instance to Map.
@override Map<String, Object?> toJson() => <String, Object?>{'memory': memory};