$UikVideoPlayerNewPropsFromJson function
Implementation
UikVideoPlayerNewProps $UikVideoPlayerNewPropsFromJson(Map<String, dynamic> json) {
final UikVideoPlayerNewProps uikVideoPlayerNewProps = UikVideoPlayerNewProps();
final String? id = jsonConvert.convert<String>(json['id']);
if (id != null) {
uikVideoPlayerNewProps.id = id;
}
final String? videoUrl = jsonConvert.convert<String>(json['videoUrl']);
if (videoUrl != null) {
uikVideoPlayerNewProps.videoUrl = videoUrl;
}
final bool? showVideoProgressIndicator =
jsonConvert.convert<bool>(json['showVideoProgressIndicator']);
if (showVideoProgressIndicator != null) {
uikVideoPlayerNewProps.showVideoProgressIndicator = showVideoProgressIndicator;
}
final double? aspectRatio = jsonConvert.convert<double>(json['aspectRatio']);
if (aspectRatio != null) {
uikVideoPlayerNewProps.aspectRatio = aspectRatio;
}
final double? width = jsonConvert.convert<double>(json['aspectRatio']);
if (width != null) {
uikVideoPlayerNewProps.width = width;
}
final UikAction? action = jsonConvert.convert<UikAction>(json['action']);
if (action != null) {
uikVideoPlayerNewProps.action = action;
}
return uikVideoPlayerNewProps;
}