Alarm.fromJson constructor

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

Implementation

factory Alarm.fromJson(Map<String, dynamic> json) {
  return Alarm(
    name: json['name'] as String?,
  );
}