fromJson static method

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

Implementation

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

  return MessageReplyToStory(
    storyPosterChatId: (json['story_poster_chat_id'] as int?) ?? 0,
    storyId: (json['story_id'] as int?) ?? 0,
  );
}