CustomerBalance.fromJson constructor

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

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']),
  );
}