StoryAreaPosition.fromJson constructor

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

Parses a StoryAreaPosition from TDLib JSON.

Implementation

factory StoryAreaPosition.fromJson(Map<String, dynamic> json) =>
    StoryAreaPosition(
      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']),
    );