factory DirectionsDuration.fromMap(Map<String, dynamic> map) => DirectionsDuration( text: map['text'] as String?, value: map['value'] as num?, );