fromJson static method

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

Implementation

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

  return StoryAlbums(
    albums: List<StoryAlbum>.from(
      tdListFromJson(json['albums'])
          .map((item) => StoryAlbum.fromJson(tdMapFromJson(item)))
          .whereType<StoryAlbum>(),
    ),
  );
}