fromJson static method

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

Implementation

static Count? fromJson(Map<String, dynamic>? json) {
  if (json == null) {
    return null;
  }

  return Count(count: (json['count'] as int?) ?? 0);
}