toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() {
  return {
    'balance': balance,
    'id': id,
    'icon': icon,
    'isSelected': isSelected,
    'type': methodTypeToJson(type),
  };
}