amountFromJson static method
returns a amount from a json object
Implementation
static double amountFromJson(dynamic json) {
return json == null
? null
: json is String
? double.parse(json)
: json is double
? json
: json['amount'] is String
? double.parse(json['amount'])
: json['amount'];
}