static BoxParams fromJson(Map<String, Object?> json) => BoxParams( (json['width']! as num).toDouble(), (json['height']! as num).toDouble());