Data.fromJson(Map<String, dynamic> json) { user = json['user'] != null ? User.fromJson(json['user']) : null; }