CSATFeedbackFullDTO.fromJson constructor

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

Implementation

factory CSATFeedbackFullDTO.fromJson(Map<String, Object?> json) {
  return CSATFeedbackFullDTO(
    comment: json[r'comment'] != null
        ? AdditionalCommentDTO.fromJson(
            json[r'comment']! as Map<String, Object?>)
        : null,
    rating: (json[r'rating'] as num?)?.toInt(),
    type: json[r'type'] as String?,
  );
}