Total.fromJson constructor

Total.fromJson(
  1. Map<String, dynamic> json
)

Implementation

factory Total.fromJson(Map<String, dynamic> json) {
  return Total(
    amount: json['amount'] as String?,
    unit: json['unit'] as String?,
  );
}