fromJson static method

DiffRect fromJson(
  1. Map<String, Object?> json
)

Implementation

static DiffRect fromJson(Map<String, Object?> json) => DiffRect(
  x: json['x'] as int? ?? 0,
  y: json['y'] as int? ?? 0,
  width: json['width'] as int? ?? 0,
  height: json['height'] as int? ?? 0,
  pixels: json['pixels'] as int? ?? 0,
);