toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() {
  final json = _$LayerToJson(this);
  // Сериализация анимаций
  json['animations'] = animations
      .map((e) => AnimationSerializer.toJson(e))
      .toList();
  return json;
}