$UikSpacerPropsFromJson function

UikSpacerProps $UikSpacerPropsFromJson(
  1. Map<String, dynamic> json
)

Implementation

UikSpacerProps $UikSpacerPropsFromJson(Map<String, dynamic> json) {
  final UikSpacerProps uikSpacerProps = UikSpacerProps();

  final String? id = jsonConvert.convert<String>(json['id']);

  if (id != null) {
    uikSpacerProps.id = id;
  }

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

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

  return uikSpacerProps;
}