mirror of
https://github.com/KRTirtho/spotube.git
synced 2025-09-12 23:45:18 +00:00
16 lines
397 B
Dart
16 lines
397 B
Dart
import 'package:hetu_script/hetu_script.dart';
|
|
import 'package:spotube/models/metadata/metadata.dart';
|
|
|
|
class MetadataPluginUserEndpoint {
|
|
final Hetu hetu;
|
|
MetadataPluginUserEndpoint(this.hetu);
|
|
|
|
Future<SpotubeUserObject> me() async {
|
|
final raw = await hetu.eval("metadataPlugin.user.me()") as Map;
|
|
|
|
return SpotubeUserObject.fromJson(
|
|
raw.cast<String, dynamic>(),
|
|
);
|
|
}
|
|
}
|