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