AttachmentCreateResultDTO.fromJson constructor

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

Implementation

factory AttachmentCreateResultDTO.fromJson(Map<String, Object?> json) {
  return AttachmentCreateResultDTO(
    attachments: json[r'attachments'] != null
        ? PagedDTOAttachmentDTO.fromJson(
            json[r'attachments']! as Map<String, Object?>)
        : null,
    comment: json[r'comment'] != null
        ? CommentDTO.fromJson(json[r'comment']! as Map<String, Object?>)
        : null,
  );
}