User.fromJson constructor

User.fromJson(
  1. Map<String, dynamic> json
)

Implementation

User.fromJson(Map<String, dynamic> json) {
  id = json['id'];
  createdAt = json['createdAt'];
  email = json['email'];
  passwordChangedAt = json['passwordChangedAt'];
  isGuest = json['isGuest'];
  isTest = json['isTest'];
  type = json['type'];
  detail = json['detail'] != null ? Detail.fromJson(json['detail']) : null;
}