FilterSubscription.fromJson constructor

FilterSubscription.fromJson(
  1. Map<String, Object?> json
)

Implementation

factory FilterSubscription.fromJson(Map<String, Object?> json) {
  return FilterSubscription(
    group: json[r'group'] != null
        ? GroupName.fromJson(json[r'group']! as Map<String, Object?>)
        : null,
    id: (json[r'id'] as num?)?.toInt(),
    user: json[r'user'] != null
        ? User.fromJson(json[r'user']! as Map<String, Object?>)
        : null,
  );
}