ProjectRelation.fromJson constructor

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

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,
  );
}