read method

  1. @override
DeviceSize read(
  1. DartObject object
)
override

Parses object into ReadType

Implementation

@override
DeviceSize read(DartObject object) {
  final height = object.getField('height')!.toDoubleValue()!;
  final width = object.getField('width')!.toDoubleValue()!;
  return DeviceSize(width: width, height: height);
}