Profile.fromLegacyJson constructor

Profile.fromLegacyJson(
  1. Map<String, dynamic> json
)

Parses the profile from a legacy JSON response. This is commonly used for unauthenticated profile queries.

Implementation

Profile.fromLegacyJson(Map<String, dynamic> json)
    : _id = json['id'],
      _name = json['name'],
      _textures = json['properties'][0]['value'],
      _signatures = json['properties'][0]['signature'] ?? '' {
  _capes = List.empty();
  _skins = List.empty();
}