CustomerBalance.fromJson constructor
Implementation
factory CustomerBalance.fromJson(Map<String, dynamic> json) {
return CustomerBalance(
balance: json['balance']?.toDouble(),
id: json['id'],
icon: json['icon'],
isSelected: json['isSelected'] ?? json['is_selected'],
type: methodTypeFromJson(json['type']),
);
}