• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 package com.airbnb.lottie.sample.compose.api
2 
3 import com.airbnb.lottie.sample.compose.ui.toColorSafe
4 
5 data class AnimationDataV2(
6     val id: Int,
7     val bg_color: String?,
8     val preview_url: String?,
9     val title: String,
10     val file: String
11 ) {
12 
13     constructor(data: AnimationDataV1) : this(
14         data.id,
15         data.bg_color,
16         data.preview,
17         data.title,
18         data.lottie_link,
19     )
20 
21     val bgColor get() = bg_color.toColorSafe()
22 }