fromJson static method
Implementation
static WatchBox fromJson(Map<String, Object?> json) => WatchBox(
id: json['id'] as String?,
x: (json['x'] as num?)?.toDouble() ?? 0,
y: (json['y'] as num?)?.toDouble() ?? 0,
width: (json['width'] as num?)?.toDouble() ?? 0,
height: (json['height'] as num?)?.toDouble() ?? 0,
);