jsonToOffset function

Offset? jsonToOffset(
  1. Map<String, dynamic>? data
)

Implementation

Offset? jsonToOffset(Map<String, dynamic>? data) {
  if (data == null) {
    return null;
  }
  return Offset(asT<double>(data['dx']), asT<double>(data['dy']));
}