ProjectRelation.fromJson constructor
Implementation
factory ProjectRelation.fromJson(Map<String, dynamic> json) {
return ProjectRelation(
userId: json['userId'],
role: json['role'],
createdAt: json['createdAt'] != null ? DateTime.parse(json['createdAt']) : null,
updatedAt: json['updatedAt'] != null ? DateTime.parse(json['updatedAt']) : null,
);
}