$UikUploadPhotoPropsFromJson function
Implementation
UikUploadPhotoProps $UikUploadPhotoPropsFromJson(Map<String, dynamic> json) {
//print(json);
final UikUploadPhotoProps uikUploadPhotoProps = UikUploadPhotoProps();
final String? id = jsonConvert.convert<String>(json['id']);
if (id != null) {
uikUploadPhotoProps.id = id;
}
final String? text = jsonConvert.convert<String>(json['text']);
if (text != null) {
//print(json['text']);
uikUploadPhotoProps.text =
UikText(WidgetType.UikText, UikTextProps.fromJson(json['text']));
}
final String? cameraIcon = jsonConvert.convert<String>(json['cameraIcon']);
if (text != null) {
uikUploadPhotoProps.cameraIcon =
UikIcon(WidgetType.UikText, UikIconProps.fromJson(json['cameraIcon']));
}
final UikAction? action = jsonConvert.convert<UikAction>(json['action']);
if (action != null) {
uikUploadPhotoProps.action = action;
}
return uikUploadPhotoProps;
}