fromJson static method
Implementation
static ScenarioAim? fromJson(Object? json) => switch (json) {
Map json => ScenarioAim(
x: _double(json['x']),
y: _double(json['y']),
width: _double(json['w']),
height: _double(json['h']),
dx: json['dx'] == null ? null : _double(json['dx']),
dy: json['dy'] == null ? null : _double(json['dy']),
toward: json['toward'] as String?,
),
_ => null,
};