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