UsersShared.fromJson constructor

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

Creates a UsersShared object from JSON object

Implementation

factory UsersShared.fromJson(Map<String, dynamic> json) {
  return UsersShared(
    requestId: json['request_id']!,
    users: (json['users'] as List<dynamic>)
        .map((e) => SharedUser.fromJson(e))
        .toList(),
  );
}