rd-android-app/lib/models/user_model.dart
2024-08-26 11:04:37 +05:30

24 lines
488 B
Dart

import 'package:dart_json_mapper/dart_json_mapper.dart';
@jsonSerializable
class UserModel {
@JsonProperty(name: '_id')
String id;
@JsonProperty(name: 'name')
String name;
@JsonProperty(name: 'uniqueId')
String uniqueId;
@JsonProperty(name: 'email')
String email;
@JsonProperty(name: 'isVerified')
bool isVerified;
UserModel({
required this.id,
required this.name,
required this.uniqueId,
required this.email,
required this.isVerified,
});
}