static Duration fromMap(Map<String, Object> map) { final duration = int.parse(map['duration'].toString()); return Duration(microseconds: duration); }