serialize method
Serializes the given value to a DogNativeCodec native value.
Implementation
@override
serialize(RRect value, DogEngine engine) {
return <String, dynamic>{
"dimensions": engine.toNative<Rect>(value.outerRect),
"radii": engine.toNative<BorderRadius>(
BorderRadius.only(
topLeft: value.tlRadius,
topRight: value.trRadius,
bottomLeft: value.blRadius,
bottomRight: value.brRadius,
),
),
};
}