Watchers.fromJson constructor
Implementation
factory Watchers.fromJson(Map<String, Object?> json) {
return Watchers(
isWatching: json[r'isWatching'] as bool? ?? false,
self: json[r'self'] as String?,
watchCount: (json[r'watchCount'] as num?)?.toInt(),
watchers: (json[r'watchers'] as List<Object?>?)
?.map((i) =>
UserDetails.fromJson(i as Map<String, Object?>? ?? const {}))
.toList() ??
[],
);
}