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:
        AreaPosition.fromJson(json['position'] as Map<String, dynamic>?)!,
    type: StoryAreaType.fromJson(json['type'] as Map<String, dynamic>?)!,
  );
}