$UikLottieViewPropsFromJson function

UikLottieViewProps $UikLottieViewPropsFromJson(
  1. Map<String, dynamic> json
)

Implementation

UikLottieViewProps $UikLottieViewPropsFromJson(Map<String, dynamic> json) {
  final UikLottieViewProps uikLottieViewProps = UikLottieViewProps();

  final String? id = jsonConvert.convert<String>(json['id']);
  if (id != null) {
    uikLottieViewProps.id = id;
  }

  final bool? repeat = jsonConvert.convert<bool>(json['repeat']);
  if (repeat != null) {
    uikLottieViewProps.repeat = repeat;
  }

  final bool? reverse = jsonConvert.convert<bool>(json['reverse']);
  if (reverse != null) {
    uikLottieViewProps.reverse = reverse;
  }

  final double? height = jsonConvert.convert<double>(json['height']);
  if (height != null) {
    uikLottieViewProps.height = height;
  }

  final double? width = jsonConvert.convert<double>(json['width']);
  if (width != null) {
    uikLottieViewProps.width = width;
  }

  final String? url = jsonConvert.convert<String>(json['url']);
  if (url != null) {
    uikLottieViewProps.url = url;
  }

  return uikLottieViewProps;
}