func (clid *CheckListItemDefinition) FromRows(rows *sql.Rows) error {
	var scanclid struct {
		ID         int
		Title      sql.NullString
		Type       sql.NullString
		Index      sql.NullInt64
		EnumValues sql.NullString
		HelpText   sql.NullString
	}
	// the order here should be the same as in the `checklistitemdefinition.Columns`.
	if err := rows.Scan(
		&scanclid.ID,
		&scanclid.Title,
		&scanclid.Type,
		&scanclid.Index,
		&scanclid.EnumValues,
		&scanclid.HelpText,
	); err != nil {
		return err
	}
	clid.ID = strconv.Itoa(scanclid.ID)
	clid.Title = scanclid.Title.String
	clid.Type = scanclid.Type.String
	clid.Index = int(scanclid.Index.Int64)
	if scanclid.EnumValues.Valid {
		clid.EnumValues = new(string)
		*clid.EnumValues = scanclid.EnumValues.String
	}
	if scanclid.HelpText.Valid {
		clid.HelpText = new(string)
		*clid.HelpText = scanclid.HelpText.String
	}
	return nil
}
// FromRows scans the sql response data into CheckListItemDefinition.
FromRows scans the sql response data into CheckListItemDefinition.
// FromRows scans the sql response data into CheckListItemDefinition .
func (clid *CheckListItemDefinition) FromRows(rows *sql.Rows) error {
	var scanclid struct {
		ID         int
		Title      sql.NullString
		Type       sql.NullString
		Index      sql.NullInt64
		EnumValues sql.NullString
		HelpText   sql.NullString
	}
	if err := rows.Scan(
		&scanclid.ID,
		&scanclid.Title,
		&scanclid.Type,
		&scanclid.Index,
		&scanclid.EnumValues,
		&scanclid.HelpText,
	); err != nil {
		return err
	}
	clid.ID = strconv.Itoa(scanclid.ID)
	clid.Title = scanclid.Title.String
	clid.Type = scanclid.Type.String
	clid.Index = int(scanclid.Index.Int64)
	if scanclid.EnumValues.Valid {
		clid.EnumValues = new(string)
		*clid.EnumValues = scanclid.EnumValues.String
	}
	if scanclid.HelpText.Valid {
		clid.HelpText = new(string)
		*clid.HelpText = scanclid.HelpText.String
	}
	return nil
}
func ( clid * CheckListItemDefinition ) FromRows ( rows * sql . Rows ) error { var scanclid struct { ID int Title sql . NullString Type sql . NullString Index sql . NullInt64 EnumValues sql . NullString HelpText sql . NullString } if err := rows . Scan ( & scanclid . ID , & scanclid . Title , & scanclid . Type , & scanclid . Index , & scanclid . EnumValues , & scanclid . HelpText , ) ; err != nil { return err } clid . ID = strconv . Itoa ( scanclid . ID ) clid . Title = scanclid . Title . String clid . Type = scanclid . Type . String clid . Index = int ( scanclid . Index . Int64 ) if scanclid . EnumValues . Valid { clid . EnumValues = new ( string ) * clid . EnumValues = scanclid . EnumValues . String } if scanclid . HelpText . Valid { clid . HelpText = new ( string ) * clid . HelpText = scanclid . HelpText . String } return nil }
FromRows scans the sql response data into CheckListItemDefinition.
FromRows scans the sql response data into CheckListItemDefinition .
// the order here should be the same as in the `checklistitemdefinition.Columns`.