Details.fromMap constructor

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

Implementation

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