fromJson static method

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

Implementation

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

  return StoryFullId(
    posterChatId: (json['poster_chat_id'] as int?) ?? 0,
    storyId: (json['story_id'] as int?) ?? 0,
  );
}