DeviceFormFactorSerialization extension
Extension providing static serialization methods for DeviceFormFactor.
Uses the same pattern as DevicePlatformSerialization for safe serialization that handles unknown values gracefully.
Static Methods
-
deserialize(
String? value) → DeviceFormFactor? -
Available on DeviceFormFactor, provided by the DeviceFormFactorSerialization extension
Deserializes a DeviceFormFactor from JSON, returning null for unknown values. -
serialize(
DeviceFormFactor? value) → String? -
Available on DeviceFormFactor, provided by the DeviceFormFactorSerialization extension
Serializes a DeviceFormFactor to JSON (lowercase string).