factory Details.fromMap(Map<String, dynamic> map) { return Details( map['shipping'] as double, map['discount'] as double, map['tip'] as double, ); }