$UikRatingPropsFromJson function

UikRatingProps $UikRatingPropsFromJson(
  1. Map<String, dynamic> json
)

Implementation

UikRatingProps $UikRatingPropsFromJson(Map<String, dynamic> json) {
  final UikRatingProps uikRatingProps = UikRatingProps();
  final String? id = jsonConvert.convert<String>(json['id']);
  if (id != null) {
    uikRatingProps.id = id;
  }

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

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

  final UikAction? action = jsonConvert.convert<UikAction>(json['action']);
  if (action != null) {
    uikRatingProps.action = action;
  }
  return uikRatingProps;
}