fromJson static method

MFScreenCoordinate? fromJson(
  1. Object? json
)

Initialize a MFScreenCoordinate from a map.

Implementation

static MFScreenCoordinate? fromJson(Object? json) {
  if (json == null || !(json is Map<dynamic, dynamic>)) {
    return null;
  }
  return MFScreenCoordinate(x: json['x'], y: json['y']);
}