fromJson static method

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

Implementation

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

  return StoryAreaTypeMessage(
    chatId: (json['chat_id'] as int?) ?? 0,
    messageId: (json['message_id'] as int?) ?? 0,
  );
}