15 lines
298 B
Dart
15 lines
298 B
Dart
import 'package:json_annotation/json_annotation.dart';
|
|
|
|
part 'auth.g.dart';
|
|
|
|
@JsonSerializable()
|
|
class Auth {
|
|
final int userId;
|
|
|
|
Auth({required this.userId});
|
|
|
|
factory Auth.fromJson(Map<String, dynamic> json) => _$AuthFromJson(json);
|
|
|
|
Map<String, dynamic> toJson() => _$AuthToJson(this);
|
|
}
|