fromJson static method

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

Implementation

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

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