decode static method

UITooltipSize? decode(
  1. dynamic json
)

Implementation

static UITooltipSize? decode(dynamic json) {
  if (json == null) {
    return null;
  }
  if (json is! Map<String, dynamic>) {
    return null;
  }

  return UITooltipSize(
    width: IntDecoder.decode(json['width']),
    height: IntDecoder.decode(json['height']),
  );
}