Users.fromJson constructor

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

Parse from a json

Implementation

factory Users.fromJson(Map<String, dynamic> json) => Users(
  totalCount: json['total_count'],
  userIds: List<int>.from((json['user_ids'] ?? []).map((item) => item).toList()),
  extra: json['@extra'],
  clientId: json['@client_id'],
);