NotificationLEDParams.fromMap constructor

NotificationLEDParams.fromMap(
  1. Map<String, dynamic> map
)

Implementation

factory NotificationLEDParams.fromMap(Map<String, dynamic> map) {
  return NotificationLEDParams(
    color: map['color'] as int?,
    onTime: map['onTime'] as int?,
    offTime: map['offTime'] as int?,
    repeatCount: map['repeatCount'] as int?,
  );
}