fromJson static method

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

Implementation

static InputStoryArea? fromJson(Map<String, dynamic>? json) {
  if (json == null) {
    return null;
  }

  return InputStoryArea(
    position: StoryAreaPosition.fromJson(tdMapFromJson(json['position'])),
    type: InputStoryAreaType.fromJson(tdMapFromJson(json['type'])),
  );
}