AreaPosition.fromJson constructor
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']),
);