User.fromJSON constructor

User.fromJSON(
  1. Map<String, dynamic> json
)

Implementation

User.fromJSON(Map<String, dynamic> json)
    : userId = json['userId'],
      displayName = json['displayName'],
      avatarUrl = json['avatarUrl'],
      identities = Map<String, String>.from(json['identities']),
      publicProperties = Map<String, String>.from(json['publicProperties']),
      verified = json['verified'] ?? false;