AreaPosition.fromJson constructor

AreaPosition.fromJson(
  1. Map<String, dynamic> json
)

Parses a AreaPosition from TDLib JSON.

Implementation

factory AreaPosition.fromJson(Map<String, dynamic> json) => AreaPosition(
  xPercentage: _readDouble(json['x_percentage']),
  yPercentage: _readDouble(json['y_percentage']),
  widthPercentage: _readDouble(json['width_percentage']),
  heightPercentage: _readDouble(json['height_percentage']),
  rotationAngle: _readDouble(json['rotation_angle']),
  cornerRadiusPercentage: _readDouble(json['corner_radius_percentage']),
);