parseRadius function

Radius? parseRadius(
  1. Map<String, dynamic>? map
)

Up till this point all parsing should be 1 level. Directly parsing a string.

Implementation

Radius? parseRadius(Map<String, dynamic>? map) {
  if (map == null) return null;
  double x = map["x"].toDouble();
  double y = map["y"].toDouble();
  return Radius.elliptical(x, y);
}