fromJson static method
Implementation
static GizmoScalar? fromJson(Object? json) {
if (json is num) return GizmoScalar(json.toDouble());
if (json is Map && json['bind'] is String) {
return GizmoScalar.bind(
json['bind'] as String,
scale: (json['scale'] as num?)?.toDouble() ?? 1,
);
}
return null;
}