fromJson static method

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

Implementation

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

  return StoryOriginPublicStory(
    chatId: (json['chat_id'] as int?) ?? 0,
    storyId: (json['story_id'] as int?) ?? 0,
  );
}