LoginStatus.fromJson constructor

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

Implementation

factory LoginStatus.fromJson(Map<String, dynamic> json) => LoginStatus(
      status: JsonObject.parseInt(json['status'])!,
      statusVerbose: json['status_verbose'] as String,
      userId: json['user_id'] as String?,
      userEmail: json['user']?['email'] as String?,
      userName: json['user']?['name'] as String?,
    );