Spend.fromJson constructor

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

Implementation

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