read method

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

Parses object into ReadType

Implementation

@override
Resolution read(DartObject object) {
  final deviceSize = deviceSizeReader.read(
    object.getField('nativeSize')!,
  );

  final scaleFactor = object.getField('scaleFactor')!.toDoubleValue()!;
  return Resolution(
    scaleFactor: scaleFactor,
    nativeSize: deviceSize,
  );
}