BusinessAwayMessageSettings.fromJson constructor

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

Parses a BusinessAwayMessageSettings from TDLib JSON.

Implementation

factory BusinessAwayMessageSettings.fromJson(Map<String, dynamic> json) =>
    BusinessAwayMessageSettings(
      shortcutId: _readInt(json['shortcut_id']),
      recipients: _readObject(
        json['recipients'],
        BusinessRecipients.fromJson,
      ),
      schedule: _readObject(
        json['schedule'],
        BusinessAwayMessageSchedule.fromJson,
      ),
      offlineOnly: _readBool(json['offline_only']),
    );