24 lines
488 B
Dart
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,
|
|
});
|
|
}
|