DOMCounter.fromJson constructor

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

Implementation

factory DOMCounter.fromJson(Map<String, dynamic> json) {
  return DOMCounter(
    name: json['name'] as String,
    count: json['count'] as int,
  );
}