deserialize method

  1. @override
BorderRadius deserialize(
  1. dynamic value,
  2. DogEngine engine
)
override

Deserializes the given value from a DogNativeCodec native value.

Implementation

@override
BorderRadius deserialize(value, DogEngine engine) {
  final [topLeft, topRight, bottomLeft, bottomRight] = _parseDoubleTuple4(value, engine, this);
  return BorderRadius.only(
    topLeft: Radius.circular(topLeft),
    topRight: Radius.circular(topRight),
    bottomLeft: Radius.circular(bottomLeft),
    bottomRight: Radius.circular(bottomRight),
  );
}