fromJson static method

ExportedRect? fromJson(
  1. Object? json
)

Implementation

static ExportedRect? fromJson(Object? json) => switch (json) {
  Map json => ExportedRect(
    x: _int(json['x']),
    y: _int(json['y']),
    width: _int(json['width']),
    height: _int(json['height']),
  ),
  _ => null,
};