UserInfoResponse.fromJson constructor

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

Creates an instance of UserInfoResponse from a JSON map.

Implementation

factory UserInfoResponse.fromJson(Map<String, dynamic> json) =>
    UserInfoResponse(
      sub: json['sub'],
      id: json['id'],
      battleTag: json['battletag'],
    );