fromJson static method

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

Implementation

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

  return InputStoryAreas(
    areas: List<InputStoryArea>.from(
      tdListFromJson(json['areas'])
          .map((item) => InputStoryArea.fromJson(tdMapFromJson(item)))
          .whereType<InputStoryArea>(),
    ),
  );
}