mirror of
https://github.com/bettercoding-dev/flutter-jwt-auth.git
synced 2025-08-23 08:32:03 +08:00
16 lines
403 B
Dart
16 lines
403 B
Dart
import 'package:flutter/foundation.dart';
|
|
import 'package:freezed_annotation/freezed_annotation.dart';
|
|
|
|
part 'login_request.freezed.dart';
|
|
part 'login_request.g.dart';
|
|
|
|
@freezed
|
|
class LoginRequest with _$LoginRequest {
|
|
const factory LoginRequest({
|
|
required String username,
|
|
}) = _LoginRequest;
|
|
|
|
factory LoginRequest.fromJson(Map<String, dynamic> json) =>
|
|
_$LoginRequestFromJson(json);
|
|
}
|