InputStoryArea.fromJson constructor

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

Parses a InputStoryArea from TDLib JSON.

Implementation

factory InputStoryArea.fromJson(Map<String, dynamic> json) => InputStoryArea(
      position: _readObject(json['position'], StoryAreaPosition.fromJson),
      type: _readObject(json['type'], InputStoryAreaType.fromJson),
    );