GetAlarmsResult.fromJson constructor

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

Implementation

factory GetAlarmsResult.fromJson(Map<String, dynamic> json) {
  return GetAlarmsResult(
    alarms: (json['alarms'] as List?)
        ?.whereNotNull()
        .map((e) => Alarm.fromJson(e as Map<String, dynamic>))
        .toList(),
    nextPageToken: json['nextPageToken'] as String?,
  );
}