Amount.fromMap constructor

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

Implementation

factory Amount.fromMap(Map<String, dynamic> map) {
  return Amount(
    map['total'] as String,
    Details.fromMap(map['details'] as Map<String,dynamic>),
  );
}