RelationData.fromJson constructor

RelationData.fromJson(
  1. Map<String, Object?> json
)

Implementation

factory RelationData.fromJson(Map<String, Object?> json) {
  return RelationData(
    createdBy: json[r'createdBy'] != null
        ? User.fromJson(json[r'createdBy']! as Map<String, Object?>)
        : null,
    createdDate: DateTime.tryParse(json[r'createdDate'] as String? ?? ''),
    friendlyCreatedDate: json[r'friendlyCreatedDate'] as String?,
  );
}