Layer.fromJson constructor
Implementation
factory Layer.fromJson(Map<String, dynamic> json) {
final layer = _$LayerFromJson(json);
// Десериализация анимаций
if (json['animations'] != null) {
layer.animations = (json['animations'] as List)
.map((e) => AnimationSerializer.fromJson(e as Map<String, dynamic>))
.toList();
}
return layer;
}