factory AccessToken.fromJson(Map<String, dynamic> json) => AccessToken( json['type'] as String, json['data'] as String, DateTime.parse(json['expiry'] as String), );