XrayUser.fromJson constructor

XrayUser.fromJson(
  1. Object? json
)

Implementation

factory XrayUser.fromJson(Object? json) {
  final map = asJsonMap(json, 'user');
  return XrayUser(
      email: map['email'] as String?, level: map['level'] as int?);
}