BusinessAwayMessageScheduleCustom.fromJson constructor

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

Parses a BusinessAwayMessageScheduleCustom from TDLib JSON.

Implementation

factory BusinessAwayMessageScheduleCustom.fromJson(
  Map<String, dynamic> json,
) => BusinessAwayMessageScheduleCustom(
  startDate: _readInt(json['start_date']),
  endDate: _readInt(json['end_date']),
);