StoryArea.fromJson constructor

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

Parses a StoryArea from TDLib JSON.

Implementation

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