AuthSessionInfo.fromJson constructor

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

Implementation

factory AuthSessionInfo.fromJson(Map<String, dynamic> json) {
  Map<String, dynamic>? others = jsonDecode(json['others'] ?? '{}');
  return AuthSessionInfo(
      accessToken: json['accessToken'],
      phoneNumber: json['phoneNumber'],
      others: others ?? {});
}