ChatSilentModeResult.fromJson constructor

ChatSilentModeResult.fromJson(
  1. Map map
)

Implementation

factory ChatSilentModeResult.fromJson(Map map) {
  int expireTimestamp = map["expireTs"];
  ChatSilentModeTime startTime =
      ChatSilentModeTime.fromJson(map["startTime"]);
  ChatSilentModeTime endTime = ChatSilentModeTime.fromJson(map["endTime"]);
  ChatPushRemindType remindType =
      chatPushRemindTypeFromInt(map["remindType"]);
  String conversationId = map["conversationId"];
  ChatConversationType conversationType =
      conversationTypeFromInt(map["conversationType"]);
  return ChatSilentModeResult(
    expireTimestamp,
    conversationType,
    conversationId,
    remindType,
    startTime,
    endTime,
  );
}