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