ProTimer.fromMap constructor
ProTimer.fromMap({
- ProLegacyClient? parent,
- required Map<
String, dynamic> data,
Implementation
ProTimer.fromMap({this.parent, required Map<String, dynamic> data}) {
name = data['nme'] ?? '';
uid = data['uid'] ?? '';
text = data['txt'] ?? '00:00:00';
duration = Duration(seconds: hms2secs(text));
}