class GetPdResponse { Avatar? avatar; String? sId; String? name; String? email; String? phone; String? role; String? uniqueId; String? createdAt; String? updatedAt; int? iV; GetPdResponse( {this.avatar, this.sId, this.name, this.email, this.phone, this.role, this.uniqueId, this.createdAt, this.updatedAt, this.iV}); GetPdResponse.fromJson(Map json) { avatar = json['avatar'] != null ? Avatar.fromJson(json['avatar']) : null; sId = json['_id']; name = json['name']; email = json['email']; phone = json['phone']; role = json['role']; uniqueId = json['uniqueId']; createdAt = json['createdAt']; updatedAt = json['updatedAt']; iV = json['__v']; } Map toJson() { final Map data = {}; if (avatar != null) { data['avatar'] = avatar!.toJson(); } data['_id'] = sId; data['name'] = name; data['email'] = email; data['phone'] = phone; data['role'] = role; data['uniqueId'] = uniqueId; data['createdAt'] = createdAt; data['updatedAt'] = updatedAt; data['__v'] = iV; return data; } } class Avatar { String? publicId; String? url; Avatar({this.publicId, this.url}); Avatar.fromJson(Map json) { publicId = json['public_id']; url = json['url']; } Map toJson() { final Map data = {}; data['public_id'] = publicId; data['url'] = url; return data; } }