Badge.fromJson constructor

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

Implementation

factory Badge.fromJson(Map<String, dynamic> json) {
  return Badge(json['id'] ?? 0, json['name'], json['points'], json['type'],
      json['description']);
}