Profile.fromJson constructor

Profile.fromJson(
  1. Map<String, Object?> json
)

Implementation

Profile.fromJson(Map<String, Object?> json)
    : avatarUrl = ((v) =>
          v != null ? Uri.parse(v as String) : null)(json['avatar_url']),
      displayName =
          ((v) => v != null ? v as String : null)(json['display_name']),
      userId = json['user_id'] as String;